org.openejb.core
Class RpcContainerWrapper

java.lang.Object
  extended by org.openejb.core.RpcContainerWrapper
All Implemented Interfaces:
Container, TransactionContainer, RpcContainer
Direct Known Subclasses:
TomcatJndiSupport

public class RpcContainerWrapper
extends java.lang.Object
implements RpcContainer, TransactionContainer

Version:
$Revision: 2106 $ $Date: 2005-08-26 14:04:51 -0700 (Fri, 26 Aug 2005) $

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

RpcContainerWrapper

public RpcContainerWrapper(RpcContainer container)
Method Detail

invoke

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
Description copied from interface: RpcContainer
Invokes a method on an instance of the specified bean deployment.

Specified by:
invoke in interface RpcContainer
Parameters:
deployID - the dployment id of the bean deployment
callMethod - the method to be called on the bean instance
args - the arguments to use when invoking the specified method
primKey - the primary key class of the bean or null if the bean does not need a primary key
securityIdentity - identity
Returns:
the result of invoking the specified method on the bean instance
Throws:
OpenEJBException
See Also:
StatefulContainer.invoke, StatelessContainer.invoke

init

public void init(java.lang.Object containerId,
                 java.util.HashMap deployments,
                 java.util.Properties properties)
          throws OpenEJBException
Description copied from interface: Container
This method is used to initalized a new container with its name, deployments and properties. this method is invoked by the assembler and will throw an exception if invoked after the container is assembled.

Specified by:
init in interface Container
Throws:
OpenEJBException

getContainerType

public int getContainerType()
Description copied from interface: Container
Gets the type of container (STATELESS, STATEFUL, ENTITY, or MESSAGE_DRIVEN

Specified by:
getContainerType in interface Container
Returns:
id type bean container

getContainerID

public java.lang.Object getContainerID()
Description copied from interface: Container
Gets the id of this container.

Specified by:
getContainerID in interface Container
Returns:
the id of this container.

getDeploymentInfo

public DeploymentInfo getDeploymentInfo(java.lang.Object deploymentID)
Description copied from interface: Container
Gets the DeploymentInfo object for the bean with the specified deployment id.

Specified by:
getDeploymentInfo in interface Container
Parameters:
deploymentID - the deployment id of the deployed bean.
Returns:
the DeploymentInfo object associated with the bean.
See Also:
DeploymentInfo, DeploymentInfo.getDeploymentID()

deployments

public DeploymentInfo[] deployments()
Description copied from interface: Container
Gets the DeploymentInfo objects for all the beans deployed in this container.

Specified by:
deployments in interface Container
Returns:
an array of DeploymentInfo objects
See Also:
DeploymentInfo

deploy

public void deploy(java.lang.Object deploymentID,
                   DeploymentInfo info)
            throws OpenEJBException
Description copied from interface: Container
Adds a bean to this container.

Specified by:
deploy in interface Container
Parameters:
deploymentID - the deployment id of the bean to deploy.
info - the DeploymentInfo object associated with the bean.
Throws:
OpenEJBException - Occurs when the container is not able to deploy the bean for some reason.

discardInstance

public void discardInstance(javax.ejb.EnterpriseBean instance,
                            ThreadContext context)
Specified by:
discardInstance in interface TransactionContainer

getContainer

public RpcContainer getContainer()


Copyright © 1999-2011 OpenEJB. All Rights Reserved.