|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openejb.core.stateless.StatelessContainer
Stateless SessionBean container
Field Summary | |
(package private) java.lang.Object |
containerID
the server unique id for this container |
(package private) java.util.HashMap |
deploymentRegistry
contains deployment information for each by deployed to this container |
(package private) StatelessInstanceManager |
instanceManager
managed bean instances; passivation and cache |
Fields inherited from interface org.openejb.Container |
ENTITY, MESSAGE_DRIVEN, STATEFUL, STATELESS |
Constructor Summary | |
StatelessContainer()
|
Method Summary | |
protected ProxyInfo |
createEJBObject(DeploymentInfo deploymentInfo)
This method creates a ProxyInfo object for a specific deployment. |
void |
deploy(java.lang.Object deploymentID,
DeploymentInfo info)
Adds a bean to this container. |
DeploymentInfo[] |
deployments()
Gets the DeploymentInfo objects for all the beans deployed in this container. |
void |
discardInstance(javax.ejb.EnterpriseBean instance,
ThreadContext context)
|
java.lang.Object |
getContainerID()
Gets the id of this container. |
int |
getContainerType()
Gets the type of container (STATELESS, STATEFUL, ENTITY, or MESSAGE_DRIVEN |
DeploymentInfo |
getDeploymentInfo(java.lang.Object deploymentID)
Gets the DeploymentInfo object for the bean with the specified deployment id. |
StatelessInstanceManager |
getInstanceManager()
|
void |
init(java.lang.Object id,
java.util.HashMap registry,
java.util.Properties properties)
Construct this container with the specified container id, deployments, container manager and properties. |
protected java.lang.Object |
invoke(java.lang.reflect.Method callMethod,
java.lang.reflect.Method runMethod,
java.lang.Object[] args,
javax.ejb.EnterpriseBean bean,
ThreadContext callContext)
|
java.lang.Object |
invoke(java.lang.Object deployID,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
java.lang.Object primKey,
java.lang.Object securityIdentity)
Invokes a method on an instance of the specified bean deployment. |
Methods inherited from class java.lang.Object |
|
Field Detail |
StatelessInstanceManager instanceManager
java.util.HashMap deploymentRegistry
java.lang.Object containerID
Constructor Detail |
public StatelessContainer()
Method Detail |
public void init(java.lang.Object id, java.util.HashMap registry, java.util.Properties properties) throws OpenEJBException
init
in interface Container
id
- the unique id to identify this container in the ContainerSystemregistry
- a hashMap of bean delpoyments that this container will be responsible formngr
- the ContainerManager for this containerproperties
- the properties this container needs to initialize and runOpenEJBException
- if there is a problem constructing the containerContainer
public DeploymentInfo[] deployments()
DeploymentInfo
objects for all the beans deployed in this container.deployments
in interface Container
DeploymentInfo
,
ContainerSystem.deployments()
public DeploymentInfo getDeploymentInfo(java.lang.Object deploymentID)
DeploymentInfo
object for the bean with the specified deployment id.getDeploymentInfo
in interface Container
id
- the deployment id of the deployed bean.DeploymentInfo
,
ContainerSystem.getDeploymentInfo
,
DeploymentInfo.getDeploymentID()
public int getContainerType()
getContainerType
in interface Container
public java.lang.Object getContainerID()
getContainerID
in interface Container
DeploymentInfo.getContainerID()
public void deploy(java.lang.Object deploymentID, DeploymentInfo info) throws OpenEJBException
deploy
in interface Container
deploymentId
- the deployment id of the bean to deploy.info
- the DeploymentInfo object associated with the bean.OpenEJBException
- Occurs when the container is not able to deploy the bean for some
reason.public java.lang.Object invoke(java.lang.Object deployID, java.lang.reflect.Method callMethod, java.lang.Object[] args, java.lang.Object primKey, java.lang.Object securityIdentity) throws OpenEJBException
invoke
in interface RpcContainer
deployID
- the dployment id of the bean deploymentcallMethod
- the method to be called on the bean instanceargs
- the arguments to use when invoking the specified methodprimKey
- the primary key class of the bean or null if the bean does not need a primary keyprncpl
- OpenEJBException
- Container.invoke
,
StatefulContainer.invoke
public StatelessInstanceManager getInstanceManager()
protected java.lang.Object invoke(java.lang.reflect.Method callMethod, java.lang.reflect.Method runMethod, java.lang.Object[] args, javax.ejb.EnterpriseBean bean, ThreadContext callContext) throws OpenEJBException
protected ProxyInfo createEJBObject(DeploymentInfo deploymentInfo)
public void discardInstance(javax.ejb.EnterpriseBean instance, ThreadContext context)
discardInstance
in interface TransactionContainer
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |