org.jboss.ejb
Interface LocalProxyFactory

All Superinterfaces:
AllowedOperationsFlags (src) , ContainerPlugin (src) , GenericEntityObjectFactory (src) , Service (src)
All Known Implementing Classes:
BaseLocalProxyFactory (src)

public interface LocalProxyFactory
extends GenericEntityObjectFactory (src) , ContainerPlugin (src)

This is an extension to the EJBProxyFactory interface. Although some implementations of the ProxyFactory interface may provide access to local interfaces, others (e.g. which provide remote distribution) will not. Good example: the JRMP delegates do not need to implement this interface.

See Also:
EJBProxyFactory (src)

Nested Class Summary
 
Nested classes inherited from class org.jboss.ejb.GenericEntityObjectFactory (src)
GenericEntityObjectFactory.UTIL (src)
 
Field Summary
 
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags (src)
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED
 
Method Summary
 EJBLocalHome (src) getEJBLocalHome()
          This method is called whenever the EJBLocalHome implementation for this container is needed.
 EJBLocalObject (src) getEntityEJBLocalObject(java.lang.Object id)
          This method is called whenever an EJBLocalObject implementation for an entitybean is needed.
 EJBLocalObject (src) getEntityEJBLocalObject(java.lang.Object id, boolean create)
          This method is called whenever a new EJBLocalObject should be created.
 java.util.Collection getEntityLocalCollection(java.util.Collection enum)
          This method is called whenever a collection of EJBLocalObjects for a collection of primary keys is needed.
 EJBLocalObject (src) getStatefulSessionEJBLocalObject(java.lang.Object id)
          This method is called whenever an EJBLocalObject implementation for a stateful session bean is needed.
 EJBLocalObject (src) getStatelessSessionEJBLocalObject()
          This method is called whenever an EJBLocalObject implementation for a stateless session bean is needed.
 
Methods inherited from interface org.jboss.ejb.GenericEntityObjectFactory (src)
getEntityEJBObject
 
Methods inherited from interface org.jboss.ejb.ContainerPlugin (src)
setContainer
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Method Detail

getEJBLocalHome

public EJBLocalHome (src)  getEJBLocalHome()
This method is called whenever the EJBLocalHome implementation for this container is needed.

Returns:
an implementation of the local home interface for this container

getStatelessSessionEJBLocalObject

public EJBLocalObject (src)  getStatelessSessionEJBLocalObject()
This method is called whenever an EJBLocalObject implementation for a stateless session bean is needed.

Returns:
an implementation of the local interface for this container

getStatefulSessionEJBLocalObject

public EJBLocalObject (src)  getStatefulSessionEJBLocalObject(java.lang.Object id)
This method is called whenever an EJBLocalObject implementation for a stateful session bean is needed.

Parameters:
id - the id of the session
Returns:
an implementation of the local interface for this container

getEntityEJBLocalObject

public EJBLocalObject (src)  getEntityEJBLocalObject(java.lang.Object id)
This method is called whenever an EJBLocalObject implementation for an entitybean is needed.

Parameters:
id - the primary key of the entity
Returns:
an implementation of the local interface for this container

getEntityEJBLocalObject

public EJBLocalObject (src)  getEntityEJBLocalObject(java.lang.Object id,
                                              boolean create)
This method is called whenever a new EJBLocalObject should be created. Called when the instance is created.

Parameters:
id - the primary key of the entity
Returns:
an implementation of the local interface for this container

getEntityLocalCollection

public java.util.Collection getEntityLocalCollection(java.util.Collection enum)
This method is called whenever a collection of EJBLocalObjects for a collection of primary keys is needed.

Parameters:
enum - enumeration of primary keys
Returns:
a collection of EJBLocalObjects implementing the remote interface for this container