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
OpenEJBExceptionpublic BeanContext[] getBeanContexts()
getBeanContexts in interface Containerpublic BeanContext getBeanContext(java.lang.Object deploymentID)
getBeanContext in interface Containerpublic ContainerType getContainerType()
getContainerType in interface Containerpublic java.lang.Object getContainerID()
getContainerID in interface Containerpublic void deploy(BeanContext beanContext) throws OpenEJBException
deploy in interface ContainerOpenEJBExceptionpublic void start(BeanContext info) throws OpenEJBException
start in interface ContainerOpenEJBExceptionpublic void stop(BeanContext info) throws OpenEJBException
stop in interface ContainerOpenEJBExceptionpublic void undeploy(BeanContext info) throws OpenEJBException
undeploy in interface ContainerOpenEJBExceptionpublic 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 RpcContainerOpenEJBExceptionpublic 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
OpenEJBExceptionpublic void ejbLoad_If_No_Transaction(ThreadContext callContext, EntityBean bean) throws java.lang.Exception
java.lang.Exceptionpublic void ejbStore_If_No_Transaction(ThreadContext callContext, EntityBean bean) throws java.lang.Exception
java.lang.Exceptionprotected void didCreateBean(ThreadContext callContext, EntityBean bean) throws OpenEJBException
OpenEJBExceptionprotected ProxyInfo createEJBObject(java.lang.reflect.Method callMethod, java.lang.Object[] args, ThreadContext callContext, InterfaceType type) throws OpenEJBException
OpenEJBExceptionprotected java.lang.Object findMethod(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext,
InterfaceType type)
throws OpenEJBException
OpenEJBExceptionprotected java.lang.Object homeMethod(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext,
InterfaceType type)
throws OpenEJBException
OpenEJBExceptionprotected void didRemove(EntityBean bean,
ThreadContext threadContext)
throws OpenEJBException
OpenEJBExceptionprotected void removeEJBObject(java.lang.reflect.Method callMethod,
java.lang.Object[] args,
ThreadContext callContext,
InterfaceType type)
throws OpenEJBException
OpenEJBException