|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.container.AbsFactory<EasyBeansMDB>
org.objectweb.easybeans.container.mdb.MDBFactory
public class MDBFactory
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.
Field Summary | |
---|---|
private static JLog |
logger
Logger. |
private MessageDrivenInfo |
messageDrivenInfo
Runtime information about the session bean. |
Constructor Summary | |
---|---|
MDBFactory(java.lang.String className,
EZBContainer container)
Builds a new MDB factory with a given name and its container. |
Method Summary | |
---|---|
EasyBeansMDB |
create(java.lang.Long clue)
Creates an instance with the given hint. |
IBeanInfo |
getBeanInfo()
Gets the bean information. |
MessageDrivenInfo |
getMessageDrivenInfo()
|
boolean |
isMatching(EasyBeansMDB 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. |
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 |
setMessageDrivenInfo(MessageDrivenInfo messageDrivenInfo)
Sets the information object for a session bean. |
void |
stop()
Stops the factory. |
boolean |
validate(EasyBeansMDB object,
PoolEntryStatistics stats)
Validate an instance by giving some statistics. |
Methods inherited from class org.objectweb.easybeans.container.AbsFactory |
---|
getBeanClass, getClassName, getContainer, getHashes, getJavaContext, getNamingManager, getPool, init, injectResources, remove, 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 |
---|
remove |
Field Detail |
---|
private static JLog logger
private MessageDrivenInfo messageDrivenInfo
Constructor Detail |
---|
public MDBFactory(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 EJBResponse rpcInvoke(EJBRequest request)
rpcInvoke
in interface Factory
rpcInvoke
in class AbsFactory<EasyBeansMDB>
request
- the EJB request.
public EJBResponse localCall(long hash, java.lang.Object[] methodArgs, java.lang.Long beanId)
localCall
in interface Factory
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 stop()
stop
in interface Factory
public IBeanInfo getBeanInfo()
Factory
getBeanInfo
in interface Factory
public MessageDrivenInfo getMessageDrivenInfo()
public void setMessageDrivenInfo(MessageDrivenInfo messageDrivenInfo)
messageDrivenInfo
- information on the bean.public EasyBeansMDB create(java.lang.Long clue) throws PoolException
create
in interface PoolFactory<EasyBeansMDB,java.lang.Long>
clue
- a clue given by the Pool. Could be null.
PoolException
- if instance cannot be created.public boolean isMatching(EasyBeansMDB object, java.lang.Long clue)
isMatching
in interface PoolFactory<EasyBeansMDB,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(EasyBeansMDB object, PoolEntryStatistics stats)
validate
in interface PoolFactory<EasyBeansMDB,java.lang.Long>
object
- the instance to validatestats
- some statistics to help in the validating process.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |