public class EntityContainer extends java.lang.Object implements RpcContainer
Modifier and Type | Field and Description |
---|---|
protected EntrancyTracker |
entrancyTracker
Tracks entity instances that have been "entered" so we can throw reentrancy exceptions.
|
static Logger |
logger |
Constructor and Description |
---|
EntityContainer(java.lang.Object id,
SecurityService securityService,
int poolSize) |
Modifier and Type | Method and Description |
---|---|
protected ProxyInfo |
createEJBObject(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext,
InterfaceType type) |
void |
deploy(BeanContext beanContext) |
protected void |
didCreateBean(ThreadContext callContext,
EntityBean bean) |
protected void |
didRemove(EntityBean bean,
ThreadContext threadContext) |
void |
ejbLoad_If_No_Transaction(ThreadContext callContext,
EntityBean bean) |
void |
ejbStore_If_No_Transaction(ThreadContext callContext,
EntityBean bean) |
protected java.lang.Object |
findMethod(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext,
InterfaceType type) |
BeanContext |
getBeanContext(java.lang.Object deploymentID) |
BeanContext[] |
getBeanContexts() |
java.lang.Object |
getContainerID() |
ContainerType |
getContainerType() |
EntityInstanceManager |
getInstanceManager() |
protected java.lang.Object |
homeMethod(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext,
InterfaceType type) |
protected java.lang.Object |
invoke(InterfaceType type,
java.lang.reflect.Method callMethod,
java.lang.reflect.Method runMethod,
java.lang.Object[] args,
ThreadContext callContext) |
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) |
protected void |
removeEJBObject(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext,
InterfaceType type) |
void |
start(BeanContext info) |
void |
stop(BeanContext info) |
void |
undeploy(BeanContext info) |
public static Logger logger
protected EntrancyTracker entrancyTracker
public EntityContainer(java.lang.Object id, SecurityService securityService, int poolSize) throws OpenEJBException
OpenEJBException
public BeanContext[] getBeanContexts()
getBeanContexts
in interface Container
public BeanContext getBeanContext(java.lang.Object deploymentID)
getBeanContext
in interface Container
public ContainerType getContainerType()
getContainerType
in interface Container
public java.lang.Object getContainerID()
getContainerID
in interface Container
public void deploy(BeanContext beanContext) throws OpenEJBException
deploy
in interface Container
OpenEJBException
public void start(BeanContext info) throws OpenEJBException
start
in interface Container
OpenEJBException
public void stop(BeanContext info) throws OpenEJBException
stop
in interface Container
OpenEJBException
public void undeploy(BeanContext info) throws OpenEJBException
undeploy
in interface Container
OpenEJBException
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 EntityInstanceManager getInstanceManager()
protected java.lang.Object invoke(InterfaceType type, java.lang.reflect.Method callMethod, java.lang.reflect.Method runMethod, java.lang.Object[] args, ThreadContext callContext) throws OpenEJBException
OpenEJBException
public void ejbLoad_If_No_Transaction(ThreadContext callContext, EntityBean bean) throws java.lang.Exception
java.lang.Exception
public void ejbStore_If_No_Transaction(ThreadContext callContext, EntityBean bean) throws java.lang.Exception
java.lang.Exception
protected void didCreateBean(ThreadContext callContext, EntityBean bean) throws OpenEJBException
OpenEJBException
protected ProxyInfo createEJBObject(java.lang.reflect.Method callMethod, java.lang.Object[] args, ThreadContext callContext, InterfaceType type) throws OpenEJBException
OpenEJBException
protected java.lang.Object findMethod(java.lang.reflect.Method callMethod, java.lang.Object[] args, ThreadContext callContext, InterfaceType type) throws OpenEJBException
OpenEJBException
protected java.lang.Object homeMethod(java.lang.reflect.Method callMethod, java.lang.Object[] args, ThreadContext callContext, InterfaceType type) throws OpenEJBException
OpenEJBException
protected void didRemove(EntityBean bean, ThreadContext threadContext) throws OpenEJBException
OpenEJBException
protected void removeEJBObject(java.lang.reflect.Method callMethod, java.lang.Object[] args, ThreadContext callContext, InterfaceType type) throws OpenEJBException
OpenEJBException