|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jboss.ejb.Container | +--org.jboss.ejb.MessageDrivenContainer
MessageDrivenContainer, based on the StatelessSessionContainer.
StatelessSessionContainer
Field Summary | |
protected java.util.Map |
beanMapping
These are the mappings between the remote interface methods and the bean methods. |
protected ContainerInvoker |
containerInvoker
This is the container invoker for this container. |
protected InstancePool |
instancePool
This is the instancepool that is to be used. |
protected Interceptor |
interceptor
This is the first interceptor in the chain. |
Fields inherited from class org.jboss.ejb.Container |
application, beanClass, classLoader, localClassLoader, localContainerInvoker, localHomeInterface, localInterface, lockManager, log, metaData, rm, securityProxy, sm, tm |
Constructor Summary | |
MessageDrivenContainer()
|
Method Summary | |
void |
addInterceptor(Interceptor in)
|
javax.ejb.EJBObject |
createHome()
|
void |
destroy()
A default implementation of destroying the container service (no-op). |
ContainerInvoker |
getContainerInvoker()
|
javax.ejb.EJBMetaData |
getEJBMetaDataHome()
|
java.lang.Class |
getHomeClass()
ContainerInvokerContainer - not needed, should we skip inherit this or just throw Error?? |
javax.ejb.HomeHandle |
getHomeHandleHome()
|
InstancePool |
getInstancePool()
|
Interceptor |
getInterceptor()
|
java.lang.Class |
getLocalClass()
|
LocalContainerInvoker |
getLocalContainerInvoker()
|
java.lang.Class |
getLocalHomeClass()
|
java.lang.Class |
getRemoteClass()
|
void |
init()
The ContainerFactory calls this method. |
java.lang.Object |
invoke(MethodInvocation mi)
This method does invocation interpositioning of tx and security, retrieves the instance from an object table, and invokes the method on the particular instance |
java.lang.Object |
invokeHome(MethodInvocation mi)
This method is called by the ContainerInvoker when a method call comes in on the Home object. |
void |
removeHome(javax.ejb.Handle handle)
|
void |
removeHome(java.lang.Object primaryKey)
|
void |
setContainerInvoker(ContainerInvoker ci)
|
void |
setInstancePool(InstancePool ip)
|
protected void |
setupBeanMapping()
|
void |
start()
A default implementation of starting the container service (no-op). |
void |
stop()
A default implementation of stopping the container service (no-op). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map beanMapping
protected ContainerInvoker containerInvoker
protected InstancePool instancePool
protected Interceptor interceptor
Constructor Detail |
public MessageDrivenContainer()
Method Detail |
public void setContainerInvoker(ContainerInvoker ci)
public ContainerInvoker getContainerInvoker()
getContainerInvoker
in interface ContainerInvokerContainer
public LocalContainerInvoker getLocalContainerInvoker()
getLocalContainerInvoker
in interface ContainerInvokerContainer
public void setInstancePool(InstancePool ip)
public InstancePool getInstancePool()
getInstancePool
in interface InstancePoolContainer
public void addInterceptor(Interceptor in)
addInterceptor
in class Container
public Interceptor getInterceptor()
public java.lang.Class getHomeClass()
getHomeClass
in interface ContainerInvokerContainer
public java.lang.Class getRemoteClass()
getRemoteClass
in interface ContainerInvokerContainer
public java.lang.Class getLocalClass()
getLocalClass
in interface ContainerInvokerContainer
getLocalClass
in class Container
public java.lang.Class getLocalHomeClass()
getLocalHomeClass
in interface ContainerInvokerContainer
getLocalHomeClass
in class Container
public void init() throws java.lang.Exception
Container
init
in class Container
org.jboss.ejb.Container
java.lang.Exception
- if loading the bean class failed (ClassNotFoundException)
or setting up "java:" naming environment failed (DeploymentException)public void start() throws java.lang.Exception
Container
start
in class Container
org.jboss.ejb.Container
java.lang.Exception
- an exception that occured during startpublic void stop()
Container
stop
in class Container
public void destroy()
Container
destroy
in class Container
public java.lang.Object invokeHome(MethodInvocation mi) throws java.lang.Exception
Container
invokeHome
in class Container
org.jboss.ejb.Container
mi
- the object holding all info about this invocationjava.lang.Exception
- public java.lang.Object invoke(MethodInvocation mi) throws java.lang.Exception
invoke
in class Container
org.jboss.ejb.Container
id
- the id of the object being invoked. May be null if statelessmethod
- the method being invokedargs
- the parametersjava.lang.Exception
- public javax.ejb.EJBObject createHome() throws java.rmi.RemoteException, javax.ejb.CreateException
public void removeHome(javax.ejb.Handle handle) throws java.rmi.RemoteException, javax.ejb.RemoveException
public void removeHome(java.lang.Object primaryKey) throws java.rmi.RemoteException, javax.ejb.RemoveException
public javax.ejb.EJBMetaData getEJBMetaDataHome() throws java.rmi.RemoteException
public javax.ejb.HomeHandle getHomeHandleHome() throws java.rmi.RemoteException
protected void setupBeanMapping() throws java.lang.NoSuchMethodException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |