Class SimpleNamingObjectFactory

    • Constructor Detail

      • SimpleNamingObjectFactory

        public SimpleNamingObjectFactory​(String name,
                                         Object value)
        Creates a factory that will also return instances of the object
        Parameters:
        name - name of object. This will be ignored
        value - Object that create will return
    • 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