org.objectweb.easybeans.api
Interface Factory

All Known Implementing Classes:
AbsFactory, SessionFactory, StatefulSessionFactory, StatelessSessionFactory

public interface Factory

This interface is used by all bean factories of EJB 3 container.

Author:
Florent Benoit

Method Summary
 EZBContainer getContainer()
          Gets the container used by this factory.
 EJBResponse rpcInvoke(EJBRequest request)
          A request comes to the bean factory and needs to be handled.
A response is done which contains the answer.
 void stop()
          Stops the factory.
 

Method Detail

rpcInvoke

EJBResponse rpcInvoke(EJBRequest request)
                      throws RPCException
A request comes to the bean factory and needs to be handled.
A response is done which contains the answer.

Parameters:
request - the EJB request.
Returns:
a response that have been processed by the factory.
Throws:
RPCException - if the invocation fails.

stop

void stop()
Stops the factory.


getContainer

EZBContainer getContainer()
Gets the container used by this factory.

Returns:
container of this factory