@Service public class JndiInitializationNamingObjectFactory extends Object implements NamingObjectFactory, org.glassfish.api.naming.NamingObjectProxy.InitializationNamingObjectProxy, Serializable
A naming object factory that is used by resource-references of type JDBC/JMS/Connector/Mail so that Application Client Container based lookup of these references will result in the server returning the "Reference" instead of the actual object since the actual object will not work in the application client container.
By virtue of implementing NamingObjectProxy.InitializationNamingObjectProxy, above requirement of returning "Reference" is achieved. Refer other implementations like org.glassfish.resourcebase.resources.api.ResourceProxy and org.glassfish.javaee.services.CommonResourceProxy
| Constructor and Description |
|---|
JndiInitializationNamingObjectFactory() |
JndiInitializationNamingObjectFactory(String name,
String jndiName,
boolean cacheResult) |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(Context ic) |
boolean |
isCreateResultCacheable()
Tells if the result of create() is cacheable.
|
public JndiInitializationNamingObjectFactory()
public boolean isCreateResultCacheable()
NamingObjectFactoryisCreateResultCacheable in interface NamingObjectFactorypublic Object create(Context ic) throws NamingException
create in interface org.glassfish.api.naming.NamingObjectProxyNamingExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.