org.apache.openejb.core.entity
Class EntityContainer
java.lang.Object
org.apache.openejb.core.entity.EntityContainer
- All Implemented Interfaces:
- Container, RpcContainer
public class EntityContainer
- extends Object
- implements RpcContainer
|
Method Summary |
protected ProxyInfo |
createEJBObject(Method callMethod,
Object[] args,
ThreadContext callContext,
InterfaceType type)
|
void |
deploy(BeanContext beanContext)
|
protected void |
didCreateBean(ThreadContext callContext,
javax.ejb.EntityBean bean)
|
protected void |
didRemove(javax.ejb.EntityBean bean,
ThreadContext threadContext)
|
void |
ejbLoad_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
|
void |
ejbStore_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
|
protected Object |
findMethod(Method callMethod,
Object[] args,
ThreadContext callContext,
InterfaceType type)
|
BeanContext |
getBeanContext(Object deploymentID)
|
BeanContext[] |
getBeanContexts()
|
Object |
getContainerID()
|
ContainerType |
getContainerType()
|
EntityInstanceManager |
getInstanceManager()
|
protected Object |
homeMethod(Method callMethod,
Object[] args,
ThreadContext callContext,
InterfaceType type)
|
protected Object |
invoke(InterfaceType type,
Method callMethod,
Method runMethod,
Object[] args,
ThreadContext callContext)
|
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. |
protected void |
removeEJBObject(Method callMethod,
Object[] args,
ThreadContext callContext,
InterfaceType type)
|
void |
start(BeanContext info)
|
void |
stop(BeanContext info)
|
void |
undeploy(BeanContext info)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static Logger logger
entrancyTracker
protected EntrancyTracker entrancyTracker
- Tracks entity instances that have been "entered" so we can throw reentrancy exceptions.
EntityContainer
public EntityContainer(Object id,
SecurityService securityService,
int poolSize)
throws OpenEJBException
- Throws:
OpenEJBException
getBeanContexts
public BeanContext[] getBeanContexts()
- Specified by:
getBeanContexts in interface Container
getBeanContext
public BeanContext getBeanContext(Object deploymentID)
- Specified by:
getBeanContext in interface Container
getContainerType
public ContainerType getContainerType()
- Specified by:
getContainerType in interface Container
getContainerID
public Object getContainerID()
- Specified by:
getContainerID in interface Container
deploy
public void deploy(BeanContext beanContext)
throws OpenEJBException
- Specified by:
deploy in interface Container
- Throws:
OpenEJBException
start
public void start(BeanContext info)
throws OpenEJBException
- Specified by:
start in interface Container
- Throws:
OpenEJBException
stop
public void stop(BeanContext info)
throws OpenEJBException
- Specified by:
stop in interface Container
- Throws:
OpenEJBException
undeploy
public void undeploy(BeanContext info)
throws OpenEJBException
- Specified by:
undeploy in interface Container
- Throws:
OpenEJBException
invoke
public Object invoke(Object deployID,
Method callMethod,
Object[] args,
Object primKey,
Object securityIdentity)
throws OpenEJBException
- Deprecated. use invoke signature without 'securityIdentity' argument.
- Specified by:
invoke in interface RpcContainer
- Throws:
OpenEJBException
invoke
public Object invoke(Object deployID,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
throws OpenEJBException
- Specified by:
invoke in interface RpcContainer
- Throws:
OpenEJBException
invoke
public Object invoke(Object deployID,
InterfaceType type,
Class callInterface,
Method callMethod,
Object[] args,
Object primKey)
throws OpenEJBException
- Specified by:
invoke in interface RpcContainer
- Throws:
OpenEJBException
getInstanceManager
public EntityInstanceManager getInstanceManager()
invoke
protected Object invoke(InterfaceType type,
Method callMethod,
Method runMethod,
Object[] args,
ThreadContext callContext)
throws OpenEJBException
- Throws:
OpenEJBException
ejbLoad_If_No_Transaction
public void ejbLoad_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
throws Exception
- Throws:
Exception
ejbStore_If_No_Transaction
public void ejbStore_If_No_Transaction(ThreadContext callContext,
javax.ejb.EntityBean bean)
throws Exception
- Throws:
Exception
didCreateBean
protected void didCreateBean(ThreadContext callContext,
javax.ejb.EntityBean bean)
throws OpenEJBException
- Throws:
OpenEJBException
createEJBObject
protected ProxyInfo createEJBObject(Method callMethod,
Object[] args,
ThreadContext callContext,
InterfaceType type)
throws OpenEJBException
- Throws:
OpenEJBException
findMethod
protected Object findMethod(Method callMethod,
Object[] args,
ThreadContext callContext,
InterfaceType type)
throws OpenEJBException
- Throws:
OpenEJBException
homeMethod
protected Object homeMethod(Method callMethod,
Object[] args,
ThreadContext callContext,
InterfaceType type)
throws OpenEJBException
- Throws:
OpenEJBException
didRemove
protected void didRemove(javax.ejb.EntityBean bean,
ThreadContext threadContext)
throws OpenEJBException
- Throws:
OpenEJBException
removeEJBObject
protected void removeEJBObject(Method callMethod,
Object[] args,
ThreadContext callContext,
InterfaceType type)
throws OpenEJBException
- Throws:
OpenEJBException
Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.