Package com.sun.enterprise.naming.util
Class CloningNamingObjectFactory
- java.lang.Object
-
- com.sun.enterprise.naming.util.CloningNamingObjectFactory
-
- All Implemented Interfaces:
NamingObjectFactory,org.glassfish.api.naming.NamingObjectProxy
@Service public class CloningNamingObjectFactory extends Object implements NamingObjectFactory
-
-
Constructor Summary
Constructors Constructor Description CloningNamingObjectFactory(String name, NamingObjectFactory delegate)CloningNamingObjectFactory(String name, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectcreate(Context ic)StringgetName()booleanisCreateResultCacheable()Tells if the result of create() is cacheable.
-
-
-
Constructor Detail
-
CloningNamingObjectFactory
public CloningNamingObjectFactory(String name, NamingObjectFactory delegate)
-
-
Method Detail
-
isCreateResultCacheable
public boolean isCreateResultCacheable()
Description copied from interface:NamingObjectFactoryTells if the result of create() is cacheable. If so the naming manager will replace this object factory with the object itself.- Specified by:
isCreateResultCacheablein interfaceNamingObjectFactory- Returns:
- true if the result of create() can be cached
-
getName
public String getName()
-
create
public Object create(Context ic) throws NamingException
- Specified by:
createin interfaceorg.glassfish.api.naming.NamingObjectProxy- Throws:
NamingException
-
-