| org.ow2.easybeans.container.mdb.MDBFactory
All known Subclasses: org.ow2.easybeans.container.mdb.MDBMessageEndPointFactory,
MDBFactory | abstract public class MDBFactory extends AbsFactory implements PoolFactory<EasyBeansMDB, Long>(Code) | | This classes is reponsible to manage the MDB objects.
Each MDB object (EasyBeansMDB) has a link to a MessageEndPoint object. The
internal message endpoint object is used by the resource adapter with the
help of the message end point factory.
author: Florent Benoit |
Constructor Summary | |
public | MDBFactory(String className, EZBContainer container) Builds a new MDB factory with a given name and its container. |
Method Summary | |
public EasyBeansMDB | create(Long clue) Creates an instance with the given hint.
Parameters: clue - a clue given by the Pool. | public IBeanInfo | getBeanInfo() | public MessageDrivenInfo | getMessageDrivenInfo() | public boolean | isMatching(EasyBeansMDB object, Long clue) Checks if the given object with the given clue is matching.
Parameters: object - given object against which the check should be done. Parameters: clue - the object used as clue to check the matching. | public EJBResponse | localCall(long hash, Object[] methodArgs, Long beanId) Do a local call on a method of this factory.
Parameters: hash - the hash of the method to execute. Parameters: methodArgs - the arguments of the method Parameters: beanId - the id of the bean that we want (stateful). | public EJBResponse | rpcInvoke(EJBRequest request) 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. | public void | setMessageDrivenInfo(MessageDrivenInfo messageDrivenInfo) Sets the information object for a session bean. | public void | stop() Stops the factory. | public boolean | validate(EasyBeansMDB object, PoolEntryStatistics stats) Validate an instance by giving some statistics.
Parameters: object - the instance to validate Parameters: stats - some statistics to help in the validating process. |
MDBFactory | public MDBFactory(String className, EZBContainer container) throws FactoryException(Code) | | Builds a new MDB factory with a given name and its container.
Parameters: className - name of this factory (name of class that is managed) Parameters: container - the root component of this factory. throws: FactoryException - if class can't be loaded. |
create | public EasyBeansMDB create(Long clue) throws PoolException(Code) | | Creates an instance with the given hint.
Parameters: clue - a clue given by the Pool. Could be null. throws: PoolException - if instance cannot be created. the created instance. |
getBeanInfo | public IBeanInfo getBeanInfo()(Code) | | information of the current bean. |
isMatching | public boolean isMatching(EasyBeansMDB object, Long clue)(Code) | | Checks if the given object with the given clue is matching.
Parameters: object - given object against which the check should be done. Parameters: clue - the object used as clue to check the matching. true if it is matching, else false. |
localCall | public EJBResponse localCall(long hash, Object[] methodArgs, Long beanId)(Code) | | Do a local call on a method of this factory.
Parameters: hash - the hash of the method to execute. Parameters: methodArgs - the arguments of the method Parameters: beanId - the id of the bean that we want (stateful). response container new id (if any) and value. |
rpcInvoke | public EJBResponse rpcInvoke(EJBRequest request)(Code) | | 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. a response that have been processed by the factory. |
setMessageDrivenInfo | public void setMessageDrivenInfo(MessageDrivenInfo messageDrivenInfo)(Code) | | Sets the information object for a session bean.
Parameters: messageDrivenInfo - information on the bean. |
stop | public void stop()(Code) | | Stops the factory.
|
validate | public boolean validate(EasyBeansMDB object, PoolEntryStatistics stats)(Code) | | Validate an instance by giving some statistics.
Parameters: object - the instance to validate Parameters: stats - some statistics to help in the validating process. true if the element is valid, else false. |
|
|