|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is an interface for Container plugins. Implementations of this interface are responsible for receiving remote invocations of EJB's and to forward these requests to the Container it is being used with.
It is responsible for providing any EJBObject and EJBHome implementations (which may be statically or dynamically created).
Before forwarding a call to the container it must call Thread.setContextClassLoader() with the classloader of the container. It must also handle any propagated transaction and security contexts properly. It may acquire the TransactionManager from JNDI.
20011219 marc fleury:
Container
Nested Class Summary |
Nested classes inherited from class org.jboss.ejb.GenericEntityObjectFactory |
GenericEntityObjectFactory.UTIL |
Method Summary | |
Object |
getEJBHome()
This method is called whenever the EJBHome implementation for this container is needed. |
javax.ejb.EJBMetaData |
getEJBMetaData()
This method is called whenever the metadata for this container is needed. |
Collection |
getEntityCollection(Collection enum)
This method is called whenever a collection of EJBObjects for a collection of primary keys is needed. |
Object |
getEntityEJBObject(Object id)
This method is called whenever an EJBObject implementation for an entitybean is needed. |
Object |
getStatefulSessionEJBObject(Object id)
This method is called whenever an EJBObject implementation for a stateful session bean is needed. |
Object |
getStatelessSessionEJBObject()
This method is called whenever an EJBObject implementation for a stateless session bean is needed. |
void |
setInvokerBinding(String binding)
Set the invoker jndi binding |
void |
setInvokerMetaData(InvokerProxyBindingMetaData imd)
Set the invoker meta data so that the ProxyFactory can initialize properly |
Methods inherited from interface org.jboss.ejb.ContainerPlugin |
setContainer |
Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
Method Detail |
public void setInvokerMetaData(InvokerProxyBindingMetaData imd)
public void setInvokerBinding(String binding)
public javax.ejb.EJBMetaData getEJBMetaData()
public Object getEJBHome()
public Object getStatelessSessionEJBObject()
RemoteException
- Thrown if the EJBObject could not be created.public Object getStatefulSessionEJBObject(Object id)
id
- The id of the session.
RemoteException
- Thrown if the EJBObject could not be created.public Object getEntityEJBObject(Object id)
getEntityEJBObject
in interface GenericEntityObjectFactory
id
- The primary key of the entity.
RemoteException
- Thrown if the EJBObject could not be created.public Collection getEntityCollection(Collection enum)
enum
- Enumeration of primary keys.
RemoteException
- Thrown if the EJBObjects could not be created.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |