| org.ow2.easybeans.container.session.stateless.StatelessSessionFactory
StatelessSessionFactory | public class StatelessSessionFactory extends SessionFactory implements PoolFactory<EasyBeansSLSB, Long>(Code) | | This class manages the stateless session bean and its creation/lifecycle.
author: Florent Benoit |
Method Summary | |
protected EasyBeansSLSB | getBean(Long beanId) Gets a bean for the given id.
Parameters: beanId - id of the expected bean. | protected Long | getId(Long beanId) Gets a new ID or a null value.
Parameters: beanId - given id. | public boolean | isMatching(EasyBeansSLSB 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 void | notifyTimeout(Timer timer) Notified when the timer service send a Timer object. | public void | remove(EasyBeansSLSB instance) Callback called when object is gonna be removed. | public boolean | validate(EasyBeansSLSB 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. |
StatelessSessionFactory | public StatelessSessionFactory(String className, EZBContainer container) throws FactoryException(Code) | | Builds a new 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. |
getId | protected Long getId(Long beanId)(Code) | | Gets a new ID or a null value.
Parameters: beanId - given id. new id |
isMatching | public boolean isMatching(EasyBeansSLSB 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. |
notifyTimeout | public void notifyTimeout(Timer timer)(Code) | | Notified when the timer service send a Timer object.
It has to call the Timed method.
Parameters: timer - the given timer object that will be given to the timer method. |
remove | public void remove(EasyBeansSLSB instance)(Code) | | Callback called when object is gonna be removed.
Parameters: instance - that is being removed from the pool. |
validate | public boolean validate(EasyBeansSLSB 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. |
|
|