public class LookupProxyFactory<T> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
LookupProxyFactory.Lookup
Interface to lookup the object to delegate to.
|
static class |
LookupProxyFactory.LookupException
Exception thrown in case an object cannot be retrieved from JNDI.
|
Constructor and Description |
---|
LookupProxyFactory(Class<T> aClass,
LookupProxyFactory.Lookup aLookup)
Constructs the factory.
|
Modifier and Type | Method and Description |
---|---|
T |
getProxy()
Gets the proxy that delegates to the instance obtained through the
lookup interface.
|
public LookupProxyFactory(Class<T> aClass, LookupProxyFactory.Lookup aLookup)
aClass
- Interface class of the service to proxy.aJndi
- JNDI name of the object to lookup.public T getProxy()
LookupProxyFactory.LookupException
.Copyright © 2022. All rights reserved.