Class FactoryForEntityManagerFactoryWrapper
- java.lang.Object
-
- com.sun.enterprise.container.common.impl.FactoryForEntityManagerFactoryWrapper
-
- All Implemented Interfaces:
NamingObjectFactory,NamingObjectProxy
public class FactoryForEntityManagerFactoryWrapper extends Object implements NamingObjectFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.naming.NamingObjectProxy
NamingObjectProxy.InitializationNamingObjectProxy
-
-
Constructor Summary
Constructors Constructor Description FactoryForEntityManagerFactoryWrapper(String unitName, InvocationManager invMgr, ComponentEnvManager compEnvMgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectcreate(Context ic)Create and return an object.booleanisCreateResultCacheable()Tells if the result of create() is cacheable.
-
-
-
Constructor Detail
-
FactoryForEntityManagerFactoryWrapper
public FactoryForEntityManagerFactoryWrapper(String unitName, InvocationManager invMgr, ComponentEnvManager compEnvMgr)
-
-
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
-
create
public Object create(Context ic) throws NamingException
Description copied from interface:NamingObjectProxyCreate and return an object.- Specified by:
createin interfaceNamingObjectProxy- Returns:
- an object
- Throws:
NamingException
-
-