|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openejb.core.cmp.CmpContainer
public class CmpContainer
| Field Summary | |
|---|---|
protected Map<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 Object |
containerID
|
protected Map<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 Summary | |
|---|---|
CmpContainer(Object id,
TransactionManager transactionManager,
SecurityService securityService,
String cmpEngineFactory)
|
|
| Method Summary | |
|---|---|
void |
deploy(BeanContext beanContext)
|
BeanContext |
getBeanContext(Object deploymentID)
|
BeanContext[] |
getBeanContexts()
|
Object |
getContainerID()
|
ContainerType |
getContainerType()
|
Object |
getEjbInstance(BeanContext beanContext,
Object primaryKey)
|
Object |
invoke(Object deployID,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
|
Object |
invoke(Object deployID,
InterfaceType type,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
|
Object |
invoke(Object deployID,
Method callMethod,
Object[] args,
Object primKey,
Object securityIdentity)
Deprecated. use invoke signature without 'securityIdentity' argument. |
Object |
select(BeanContext beanContext,
String methodSignature,
String returnType,
Object... args)
|
void |
start(BeanContext beanContext)
|
void |
stop(BeanContext beanContext)
|
void |
undeploy(BeanContext beanContext)
|
int |
update(BeanContext beanContext,
String methodSignature,
Object... args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Object containerID
protected final SecurityService securityService
protected final Map<Object,BeanContext> deploymentsById
protected final Map<Class,BeanContext> beansByClass
protected final CmpEngine cmpEngine
protected EntrancyTracker entrancyTracker
protected TransactionSynchronizationRegistry synchronizationRegistry
| Constructor Detail |
|---|
public CmpContainer(Object id,
TransactionManager transactionManager,
SecurityService securityService,
String cmpEngineFactory)
throws OpenEJBException
OpenEJBException| Method Detail |
|---|
public Object getContainerID()
getContainerID in interface Containerpublic ContainerType getContainerType()
getContainerType in interface Containerpublic BeanContext[] getBeanContexts()
getBeanContexts in interface Containerpublic BeanContext getBeanContext(Object deploymentID)
getBeanContext in interface Container
public void deploy(BeanContext beanContext)
throws OpenEJBException
deploy in interface ContainerOpenEJBException
public void start(BeanContext beanContext)
throws OpenEJBException
start in interface ContainerOpenEJBException
public void stop(BeanContext beanContext)
throws OpenEJBException
stop in interface ContainerOpenEJBException
public void undeploy(BeanContext beanContext)
throws OpenEJBException
undeploy in interface ContainerOpenEJBException
public Object getEjbInstance(BeanContext beanContext,
Object primaryKey)
public Object invoke(Object deployID,
Method callMethod,
Object[] args,
Object primKey,
Object securityIdentity)
throws OpenEJBException
invoke in interface RpcContainerOpenEJBException
public Object invoke(Object deployID,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
throws OpenEJBException
invoke in interface RpcContainerOpenEJBException
public Object invoke(Object deployID,
InterfaceType type,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
throws OpenEJBException
invoke in interface RpcContainerOpenEJBException
public Object select(BeanContext beanContext,
String methodSignature,
String returnType,
Object... args)
throws javax.ejb.FinderException
javax.ejb.FinderException
public int update(BeanContext beanContext,
String methodSignature,
Object... args)
throws javax.ejb.FinderException
javax.ejb.FinderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||