|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.core.RpcContainerWrapper
public class RpcContainerWrapper
Field Summary |
---|
Fields inherited from interface org.openejb.Container |
---|
ENTITY, MESSAGE_DRIVEN, STATEFUL, STATELESS |
Constructor Summary | |
---|---|
RpcContainerWrapper(RpcContainer container)
|
Method Summary | |
---|---|
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)
|
RpcContainer |
getContainer()
|
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. |
void |
init(java.lang.Object containerId,
java.util.HashMap deployments,
java.util.Properties properties)
This method is used to initalized a new container with its name, deployments and properties. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RpcContainerWrapper(RpcContainer container)
Method Detail |
---|
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
RpcContainer
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 keysecurityIdentity
- identity
OpenEJBException
StatefulContainer.invoke
,
StatelessContainer.invoke
public void init(java.lang.Object containerId, java.util.HashMap deployments, java.util.Properties properties) throws OpenEJBException
Container
init
in interface Container
OpenEJBException
public int getContainerType()
Container
getContainerType
in interface Container
public java.lang.Object getContainerID()
Container
getContainerID
in interface Container
public DeploymentInfo getDeploymentInfo(java.lang.Object deploymentID)
Container
DeploymentInfo
object for the bean with the specified deployment id.
getDeploymentInfo
in interface Container
deploymentID
- the deployment id of the deployed bean.
DeploymentInfo
,
DeploymentInfo.getDeploymentID()
public DeploymentInfo[] deployments()
Container
DeploymentInfo
objects for all the beans deployed in this container.
deployments
in interface Container
DeploymentInfo
public void deploy(java.lang.Object deploymentID, DeploymentInfo info) throws OpenEJBException
Container
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 void discardInstance(javax.ejb.EnterpriseBean instance, ThreadContext context)
discardInstance
in interface TransactionContainer
public RpcContainer getContainer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |