|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.container.AbsFactory<PoolType>
org.objectweb.easybeans.container.session.SessionFactory<EasyBeansSLSB>
org.objectweb.easybeans.container.session.stateless.StatelessSessionFactory
public class StatelessSessionFactory
This class manages the stateless session bean and its creation/lifecycle.
Constructor Summary | |
---|---|
StatelessSessionFactory(java.lang.String className,
EZBContainer container)
Builds a new factory with a given name and its container. |
Method Summary | |
---|---|
protected EasyBeansSLSB |
getBean(java.lang.Long beanId)
Gets a bean for the given id. |
protected java.lang.Long |
getId(java.lang.Long beanId)
Gets a new ID or a null value. |
boolean |
isMatching(EasyBeansSLSB object,
java.lang.Long clue)
Checks if the given object with the given clue is matching. |
EJBResponse |
localCall(long hash,
java.lang.Object[] methodArgs,
java.lang.Long beanId)
Do a local call on a method of this factory. |
void |
remove(EasyBeansSLSB instance)
Callback called when object is gonna be removed. |
boolean |
validate(EasyBeansSLSB object,
PoolEntryStatistics stats)
Validate an instance by giving some statistics. |
Methods inherited from class org.objectweb.easybeans.container.session.SessionFactory |
---|
create, getBeanInfo, getSessionBeanInfo, rpcInvoke, setSessionBeanInfo, stop |
Methods inherited from class org.objectweb.easybeans.container.AbsFactory |
---|
getBeanClass, getClassName, getContainer, getHashes, getId, getJavaContext, getNamingManager, getPool, init, injectResources, setBeanClass, setHashes, setJavaContext, setPool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.easybeans.pool.PoolFactory |
---|
create |
Constructor Detail |
---|
public StatelessSessionFactory(java.lang.String className, EZBContainer container) throws FactoryException
className
- name of this factory (name of class that is managed)container
- the root component of this factory.
FactoryException
- if class can't be loaded.Method Detail |
---|
public boolean isMatching(EasyBeansSLSB object, java.lang.Long clue)
isMatching
in interface PoolFactory<EasyBeansSLSB,java.lang.Long>
object
- given object against which the check should be done.clue
- the object used as clue to check the matching.
public boolean validate(EasyBeansSLSB object, PoolEntryStatistics stats)
validate
in interface PoolFactory<EasyBeansSLSB,java.lang.Long>
object
- the instance to validatestats
- some statistics to help in the validating process.
protected java.lang.Long getId(java.lang.Long beanId)
getId
in class SessionFactory<EasyBeansSLSB>
beanId
- given id.
protected EasyBeansSLSB getBean(java.lang.Long beanId) throws java.lang.IllegalArgumentException
getBean
in class SessionFactory<EasyBeansSLSB>
beanId
- id of the expected bean.
java.lang.IllegalArgumentException
- if bean is not found.public EJBResponse localCall(long hash, java.lang.Object[] methodArgs, java.lang.Long beanId)
localCall
in interface Factory<EasyBeansSLSB,java.lang.Long>
localCall
in class SessionFactory<EasyBeansSLSB>
hash
- the hash of the method to execute.methodArgs
- the arguments of the methodbeanId
- the id of the bean that we want (stateful).
public void remove(EasyBeansSLSB instance)
remove
in interface PoolFactory<EasyBeansSLSB,java.lang.Long>
remove
in class AbsFactory<EasyBeansSLSB>
instance
- that is being removed from the pool.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |