Class SimpleNamingObjectFactory

    • Constructor Detail

      • SimpleNamingObjectFactory

        public SimpleNamingObjectFactory​(String name,
                                         Object value)
    • Method Detail

      • 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
      • getName

        public String getName()
      • create

        public Object create​(Context ic)
        Specified by:
        create in interface org.glassfish.api.naming.NamingObjectProxy