org.apache.openejb.core.mdb
Class MdbContainer
java.lang.Object
org.apache.openejb.core.mdb.MdbContainer
- All Implemented Interfaces:
- Container, RpcContainer
public class MdbContainer
- extends java.lang.Object
- implements RpcContainer
Constructor Summary |
MdbContainer(java.lang.Object containerID,
SecurityService securityService,
javax.resource.spi.ResourceAdapter resourceAdapter,
java.lang.Class messageListenerInterface,
java.lang.Class activationSpecClass,
int instanceLimit)
|
Method Summary |
void |
afterDelivery(java.lang.Object instance)
|
void |
beforeDelivery(CoreDeploymentInfo deployInfo,
java.lang.Object instance,
java.lang.reflect.Method method,
javax.transaction.xa.XAResource xaResource)
|
void |
deploy(DeploymentInfo info)
|
DeploymentInfo[] |
deployments()
|
java.lang.Class |
getActivationSpecClass()
|
java.lang.Object |
getContainerID()
|
ContainerType |
getContainerType()
|
DeploymentInfo |
getDeploymentInfo(java.lang.Object deploymentID)
|
java.lang.Class |
getMessageListenerInterface()
|
javax.resource.spi.ResourceAdapter |
getResourceAdapter()
|
java.lang.Object |
invoke(java.lang.Object deployID,
java.lang.Class callInterface,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
java.lang.Object primKey)
|
java.lang.Object |
invoke(java.lang.Object deploymentId,
InterfaceType type,
java.lang.Class callInterface,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object primKey)
|
java.lang.Object |
invoke(java.lang.Object instance,
java.lang.reflect.Method method,
java.lang.Object... args)
|
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)
Deprecated. use invoke signature without 'securityIdentity' argument. |
void |
release(CoreDeploymentInfo deployInfo,
java.lang.Object instance)
|
void |
undeploy(DeploymentInfo info)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MdbContainer
public MdbContainer(java.lang.Object containerID,
SecurityService securityService,
javax.resource.spi.ResourceAdapter resourceAdapter,
java.lang.Class messageListenerInterface,
java.lang.Class activationSpecClass,
int instanceLimit)
deployments
public DeploymentInfo[] deployments()
- Specified by:
deployments
in interface Container
getDeploymentInfo
public DeploymentInfo getDeploymentInfo(java.lang.Object deploymentID)
- Specified by:
getDeploymentInfo
in interface Container
getContainerType
public ContainerType getContainerType()
- Specified by:
getContainerType
in interface Container
getContainerID
public java.lang.Object getContainerID()
- Specified by:
getContainerID
in interface Container
getResourceAdapter
public javax.resource.spi.ResourceAdapter getResourceAdapter()
getMessageListenerInterface
public java.lang.Class getMessageListenerInterface()
getActivationSpecClass
public java.lang.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 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
- Deprecated. use invoke signature without 'securityIdentity' argument.
- Specified by:
invoke
in interface RpcContainer
- Throws:
OpenEJBException
invoke
public java.lang.Object invoke(java.lang.Object deployID,
java.lang.Class callInterface,
java.lang.reflect.Method callMethod,
java.lang.Object[] args,
java.lang.Object primKey)
throws OpenEJBException
- Specified by:
invoke
in interface RpcContainer
- Throws:
OpenEJBException
invoke
public java.lang.Object invoke(java.lang.Object deploymentId,
InterfaceType type,
java.lang.Class callInterface,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object primKey)
throws OpenEJBException
- Specified by:
invoke
in interface RpcContainer
- Throws:
OpenEJBException
beforeDelivery
public void beforeDelivery(CoreDeploymentInfo deployInfo,
java.lang.Object instance,
java.lang.reflect.Method method,
javax.transaction.xa.XAResource xaResource)
throws SystemException
- Throws:
SystemException
invoke
public java.lang.Object invoke(java.lang.Object instance,
java.lang.reflect.Method method,
java.lang.Object... args)
throws SystemException,
ApplicationException
- Throws:
SystemException
ApplicationException
afterDelivery
public void afterDelivery(java.lang.Object instance)
throws SystemException
- Throws:
SystemException
release
public void release(CoreDeploymentInfo deployInfo,
java.lang.Object instance)
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.