|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.container.AbsFactory
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 | |
---|---|
EasyBeansSLSB |
create(java.lang.Long clue)
Creates an instance with the given hint. |
boolean |
isMatching(EasyBeansSLSB object,
java.lang.Long clue)
Checks if the given object with the given clue is matching. |
void |
remove(EasyBeansSLSB instance)
Callback called when object is gonna be removed. |
EJBResponse |
rpcInvoke(EJBRequest request)
A request comes to the bean factory and needs to be handled. A response is done which contains the answer. |
boolean |
validate(EasyBeansSLSB object,
PoolEntryStatistics stats)
Validate an instance by giving some statistics. |
Methods inherited from class org.objectweb.easybeans.container.session.SessionFactory |
---|
getBeanClass, getClassName, getContainer, getHashes, getPool, setBeanClass, setHashes, setPool, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 EasyBeansSLSB create(java.lang.Long clue) throws PoolException
create
in interface PoolFactory<EasyBeansSLSB,java.lang.Long>
clue
- a clue given by the Pool. Could be null.
PoolException
- if instance cannot be created.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.
public void remove(EasyBeansSLSB instance)
remove
in interface PoolFactory<EasyBeansSLSB,java.lang.Long>
instance
- that is being removed from the pool.public EJBResponse rpcInvoke(EJBRequest request) throws RPCException
rpcInvoke
in interface Factory
rpcInvoke
in class AbsFactory
request
- the EJB request.
RPCException
- if the invocation fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |