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 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(BeanContext deployInfo,
Object instance,
Method method,
XAResource xaResource)
|
void |
deploy(BeanContext beanContext)
|
Class |
getActivationSpecClass()
|
BeanContext |
getBeanContext(Object deploymentID)
|
BeanContext[] |
getBeanContexts()
|
Object |
getContainerID()
|
ContainerType |
getContainerType()
|
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,
InterfaceType type,
Object... args)
|
Object |
invoke(Object deployID,
Method callMethod,
Object[] args,
Object primKey,
Object securityIdentity)
Deprecated. use invoke signature without 'securityIdentity' argument. |
void |
release(BeanContext deployInfo,
Object instance)
|
void |
start(BeanContext info)
|
void |
stop(BeanContext info)
|
void |
undeploy(BeanContext beanContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MdbContainer
public MdbContainer(Object containerID,
SecurityService securityService,
javax.resource.spi.ResourceAdapter resourceAdapter,
Class messageListenerInterface,
Class activationSpecClass,
int instanceLimit)
getBeanContexts
public BeanContext[] getBeanContexts()
- Specified by:
getBeanContexts in interface Container
getBeanContext
public BeanContext getBeanContext(Object deploymentID)
- Specified by:
getBeanContext 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(BeanContext beanContext)
throws OpenEJBException
- Specified by:
deploy in interface Container
- Throws:
OpenEJBException
start
public void start(BeanContext info)
throws OpenEJBException
- Specified by:
start in interface Container
- Throws:
OpenEJBException
stop
public void stop(BeanContext info)
throws OpenEJBException
- Specified by:
stop in interface Container
- Throws:
OpenEJBException
undeploy
public void undeploy(BeanContext beanContext)
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(BeanContext deployInfo,
Object instance,
Method method,
XAResource xaResource)
throws SystemException
- Throws:
SystemException
invoke
public Object invoke(Object instance,
Method method,
InterfaceType type,
Object... args)
throws SystemException,
ApplicationException
- Throws:
SystemException
ApplicationException
afterDelivery
public void afterDelivery(Object instance)
throws SystemException
- Throws:
SystemException
release
public void release(BeanContext deployInfo,
Object instance)
Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.