org.apache.openejb.core.mdb
Class MdbContainer

java.lang.Object
  extended by org.apache.openejb.core.mdb.MdbContainer
All Implemented Interfaces:
Container, RpcContainer

public class MdbContainer
extends Object
implements RpcContainer


Constructor Summary
MdbContainer(Object containerID, SecurityService securityService, javax.resource.spi.ResourceAdapter resourceAdapter, Class messageListenerInterface, Class activationSpecClass, int instanceLimit)
           
 
Method Summary
 void afterDelivery(Object instance)
           
 void beforeDelivery(CoreDeploymentInfo deployInfo, Object instance, Method method, XAResource xaResource)
           
 void deploy(DeploymentInfo info)
           
 DeploymentInfo[] deployments()
           
 Class getActivationSpecClass()
           
 Object getContainerID()
           
 ContainerType getContainerType()
           
 DeploymentInfo getDeploymentInfo(Object deploymentID)
           
 Class getMessageListenerInterface()
           
 javax.resource.spi.ResourceAdapter getResourceAdapter()
           
 Object invoke(Object deployID, Class callInterface, Method callMethod, Object[] args, Object primKey)
           
 Object invoke(Object deploymentId, InterfaceType type, Class callInterface, Method method, Object[] args, Object primKey)
           
 Object invoke(Object instance, Method method, Object... args)
           
 Object invoke(Object deployID, Method callMethod, Object[] args, Object primKey, Object securityIdentity)
          Deprecated. use invoke signature without 'securityIdentity' argument.
 void release(CoreDeploymentInfo deployInfo, Object instance)
           
 void undeploy(DeploymentInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdbContainer

public MdbContainer(Object containerID,
                    SecurityService securityService,
                    javax.resource.spi.ResourceAdapter resourceAdapter,
                    Class messageListenerInterface,
                    Class activationSpecClass,
                    int instanceLimit)
Method Detail

deployments

public DeploymentInfo[] deployments()
Specified by:
deployments in interface Container

getDeploymentInfo

public DeploymentInfo getDeploymentInfo(Object deploymentID)
Specified by:
getDeploymentInfo in interface Container

getContainerType

public ContainerType getContainerType()
Specified by:
getContainerType in interface Container

getContainerID

public Object getContainerID()
Specified by:
getContainerID in interface Container

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()

getMessageListenerInterface

public Class getMessageListenerInterface()

getActivationSpecClass

public Class getActivationSpecClass()

deploy

public void deploy(DeploymentInfo info)
            throws OpenEJBException
Specified by:
deploy in interface Container
Throws:
OpenEJBException

undeploy

public void undeploy(DeploymentInfo info)
              throws OpenEJBException
Specified by:
undeploy in interface Container
Throws:
OpenEJBException

invoke

public Object invoke(Object deployID,
                     Method callMethod,
                     Object[] args,
                     Object primKey,
                     Object securityIdentity)
              throws OpenEJBException
Deprecated. use invoke signature without 'securityIdentity' argument.

Specified by:
invoke in interface RpcContainer
Throws:
OpenEJBException

invoke

public Object invoke(Object deployID,
                     Class callInterface,
                     Method callMethod,
                     Object[] args,
                     Object primKey)
              throws OpenEJBException
Specified by:
invoke in interface RpcContainer
Throws:
OpenEJBException

invoke

public Object invoke(Object deploymentId,
                     InterfaceType type,
                     Class callInterface,
                     Method method,
                     Object[] args,
                     Object primKey)
              throws OpenEJBException
Specified by:
invoke in interface RpcContainer
Throws:
OpenEJBException

beforeDelivery

public void beforeDelivery(CoreDeploymentInfo deployInfo,
                           Object instance,
                           Method method,
                           XAResource xaResource)
                    throws SystemException
Throws:
SystemException

invoke

public Object invoke(Object instance,
                     Method method,
                     Object... args)
              throws SystemException,
                     ApplicationException
Throws:
SystemException
ApplicationException

afterDelivery

public void afterDelivery(Object instance)
                   throws SystemException
Throws:
SystemException

release

public void release(CoreDeploymentInfo deployInfo,
                    Object instance)


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.