Class JndiNamingObjectFactory

java.lang.Object
com.sun.enterprise.naming.util.JndiNamingObjectFactory
All Implemented Interfaces:
NamingObjectFactory, org.glassfish.api.naming.NamingObjectProxy

@Service public class JndiNamingObjectFactory extends Object implements NamingObjectFactory
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.glassfish.api.naming.NamingObjectProxy

    org.glassfish.api.naming.NamingObjectProxy.InitializationNamingObjectProxy
  • Constructor Summary

    Constructors
    Constructor
    Description
    JndiNamingObjectFactory(org.glassfish.api.naming.SimpleJndiName name, org.glassfish.api.naming.SimpleJndiName jndiName, boolean cacheResult)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
     
    boolean
    Tells if the result of create() is cacheable.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JndiNamingObjectFactory

      public JndiNamingObjectFactory(org.glassfish.api.naming.SimpleJndiName name, org.glassfish.api.naming.SimpleJndiName jndiName, boolean cacheResult)
  • Method Details

    • isCreateResultCacheable

      public boolean isCreateResultCacheable()
      Description copied from interface: NamingObjectFactory
      Tells if the result of create() is cacheable. If so the naming manager will replace this object factory with the object itself.
      Specified by:
      isCreateResultCacheable in interface NamingObjectFactory
      Returns:
      true if the result of create() can be cached
    • create

      public <T> T create(Context ic) throws NamingException
      Specified by:
      create in interface org.glassfish.api.naming.NamingObjectProxy
      Throws:
      NamingException