Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » [javadoc | source]
org.jboss.ejb
public interface: EJBProxyFactory [javadoc | source]

All Implemented Interfaces:
    ContainerPlugin, GenericEntityObjectFactory

All Known Implementing Classes:
    JBossMessageEndpointFactory, ProxyFactory, ProxyFactoryHA, IORFactory, JBossJMSMessageEndpointFactory, JMSContainerInvoker

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.

Method from org.jboss.ejb.EJBProxyFactory Summary:
getEJBHome,   getEJBMetaData,   getEntityCollection,   getEntityEJBObject,   getStatefulSessionEJBObject,   getStatelessSessionEJBObject,   isIdentical,   setInvokerBinding,   setInvokerMetaData
Method from org.jboss.ejb.EJBProxyFactory Detail:
 public Object getEJBHome()
    This method is called whenever the EJBHome implementation for this container is needed.
 public EJBMetaData getEJBMetaData()
    This method is called whenever the metadata for this container is needed.
 public Collection getEntityCollection(Collection en)
    This method is called whenever a collection of EJBObjects for a collection of primary keys is needed.
 public Object getEntityEJBObject(Object id)
    This method is called whenever an EJBObject implementation for an entitybean is needed.
 public Object getStatefulSessionEJBObject(Object id)
    This method is called whenever an EJBObject implementation for a stateful session bean is needed.
 public Object getStatelessSessionEJBObject()
    This method is called whenever an EJBObject implementation for a stateless session bean is needed.
 public boolean isIdentical(Container container,
    Invocation mi)
    Protocol specific isIdentical implementation
 public  void setInvokerBinding(String binding)
    Set the invoker jndi binding
 public  void setInvokerMetaData(InvokerProxyBindingMetaData imd)
    Set the invoker meta data so that the ProxyFactory can initialize properly