|
|||||||||||
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 |
Field Summary |
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 en)
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. |
boolean |
isIdentical(Container container,
Invocation mi)
Protocol specific isIdentical implementation |
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 boolean isIdentical(Container container, Invocation mi)
container
- the containermi
- the invocation
public javax.ejb.EJBMetaData getEJBMetaData()
public Object getEJBHome()
public Object getStatelessSessionEJBObject()
public Object getStatefulSessionEJBObject(Object id)
id
- The id of the session.
public Object getEntityEJBObject(Object id)
getEntityEJBObject
in interface GenericEntityObjectFactory
id
- The primary key of the entity.
public Collection getEntityCollection(Collection en)
en
- Enumeration of primary keys.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |