Package com.sun.enterprise.naming.util
Class SimpleNamingObjectFactory
- java.lang.Object
-
- com.sun.enterprise.naming.util.SimpleNamingObjectFactory
-
- All Implemented Interfaces:
NamingObjectFactory
,NamingObjectProxy
@Service public class SimpleNamingObjectFactory extends Object implements NamingObjectFactory
Returns instances of the specified objectThis class is always cacheable. The create method will always return the object originally given
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.naming.NamingObjectProxy
NamingObjectProxy.InitializationNamingObjectProxy
-
-
Constructor Summary
Constructors Constructor Description SimpleNamingObjectFactory(String name, Object value)
Creates a factory that will also return instances of the object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
create(Context ic)
Create and return an object.boolean
isCreateResultCacheable()
Tells if the result of create() is cacheable.
-
-
-
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 interfaceNamingObjectFactory
- Returns:
- true if the result of create() can be cached
-
create
public Object create(Context ic)
Description copied from interface:NamingObjectProxy
Create and return an object.- Specified by:
create
in interfaceNamingObjectProxy
- Returns:
- an object
-
-