public class CmpContainer extends java.lang.Object implements RpcContainer
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Class,BeanContext> |
beansByClass
When events are fired from the CMP engine only an entity bean instance is returned.
|
protected CmpEngine |
cmpEngine
The CmpEngine which performs the actual persistence operations
|
protected java.lang.Object |
containerID |
protected java.util.Map<java.lang.Object,BeanContext> |
deploymentsById
Index used for getDeployments() and getDeploymentInfo(deploymentId).
|
protected EntrancyTracker |
entrancyTracker
Tracks entity instances that have been "entered" so we can throw reentrancy exceptions.
|
protected SecurityService |
securityService |
protected TransactionSynchronizationRegistry |
synchronizationRegistry |
Constructor and Description |
---|
CmpContainer(java.lang.Object id,
TransactionManager transactionManager,
SecurityService securityService,
java.lang.String cmpEngineFactory) |
Modifier and Type | Method and Description |
---|---|
void |
deploy(BeanContext beanContext) |
BeanContext |
getBeanContext(java.lang.Object deploymentID) |
BeanContext[] |
getBeanContexts() |
java.lang.Object |
getContainerID() |
ContainerType |
getContainerType() |
java.lang.Object |
getEjbInstance(BeanContext beanContext,
java.lang.Object primaryKey) |
java.lang.Object |
invoke(java.lang.Object deployID,
InterfaceType type,
java.lang.Class callInterface,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
java.lang.Object primKey) |
java.lang.Object |
select(BeanContext beanContext,
java.lang.String methodSignature,
java.lang.String returnType,
java.lang.Object... args) |
void |
start(BeanContext beanContext) |
void |
stop(BeanContext beanContext) |
void |
undeploy(BeanContext beanContext) |
int |
update(BeanContext beanContext,
java.lang.String methodSignature,
java.lang.Object... args) |
protected final java.lang.Object containerID
protected final SecurityService securityService
protected final java.util.Map<java.lang.Object,BeanContext> deploymentsById
protected final java.util.Map<java.lang.Class,BeanContext> beansByClass
protected final CmpEngine cmpEngine
protected EntrancyTracker entrancyTracker
protected TransactionSynchronizationRegistry synchronizationRegistry
public CmpContainer(java.lang.Object id, TransactionManager transactionManager, SecurityService securityService, java.lang.String cmpEngineFactory) throws OpenEJBException
OpenEJBException
public java.lang.Object getContainerID()
getContainerID
in interface Container
public ContainerType getContainerType()
getContainerType
in interface Container
public BeanContext[] getBeanContexts()
getBeanContexts
in interface Container
public BeanContext getBeanContext(java.lang.Object deploymentID)
getBeanContext
in interface Container
public void deploy(BeanContext beanContext) throws OpenEJBException
deploy
in interface Container
OpenEJBException
public void start(BeanContext beanContext) throws OpenEJBException
start
in interface Container
OpenEJBException
public void stop(BeanContext beanContext) throws OpenEJBException
stop
in interface Container
OpenEJBException
public void undeploy(BeanContext beanContext) throws OpenEJBException
undeploy
in interface Container
OpenEJBException
public java.lang.Object getEjbInstance(BeanContext beanContext, java.lang.Object primaryKey)
public java.lang.Object invoke(java.lang.Object deployID, InterfaceType type, java.lang.Class callInterface, java.lang.reflect.Method callMethod, java.lang.Object[] args, java.lang.Object primKey) throws OpenEJBException
invoke
in interface RpcContainer
OpenEJBException
public java.lang.Object select(BeanContext beanContext, java.lang.String methodSignature, java.lang.String returnType, java.lang.Object... args) throws FinderException
FinderException
public int update(BeanContext beanContext, java.lang.String methodSignature, java.lang.Object... args) throws FinderException
FinderException