|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
PoolType - The type of the pool.Clue - The clue used by the pool.public interface Factory<PoolType,Clue>
This interface is used by all bean factories of EJB 3 container.
| Method Summary | |
|---|---|
IBeanInfo |
getBeanInfo()
Gets the bean information. |
String |
getClassName()
Gets the className used by this factory. |
EZBContainer |
getContainer()
Gets the container used by this factory. |
InheritableThreadLocal<Map<String,Object>> |
getContextDataThreadLocal()
|
String |
getId()
Gets an id for this factory. |
EZBInvocationContextFactory |
getInvocationContextFactory()
|
Context |
getJavaContext()
Gets the java: context. |
OperationState |
getOperationState()
|
InheritableThreadLocal<OperationState> |
getOperationStateThreadLocal()
|
org.ow2.util.pool.api.Pool<PoolType,Clue> |
getPool()
Gets the pool used by this factory. |
EZBTimerService |
getTimerService()
Gets the timer service of this factory. |
void |
init()
Init the factory. |
EJBResponse |
localCall(EJBLocalRequest localCallRequest)
Do a local call on a method of this factory. |
void |
notifyTimeout(javax.ejb.Timer timer,
IMethodInfo methodInfo)
Notified when the timer service send a Timer object. |
EJBResponse |
rpcInvoke(EJBRemoteRequest request)
A remote request comes to the bean factory and needs to be handled. A response is done which contains the answer. |
void |
setInvocationContextFactory(EZBInvocationContextFactory invocationContextFactory)
Defines the invocation context factory (for dynamic mode). |
void |
setJavaContext(Context javaContext)
Sets the java: context. |
void |
start()
Starts the factory. |
void |
stop()
Stops the factory. |
| Methods inherited from interface org.ow2.easybeans.api.EZBJ2EEManagedObject |
|---|
getComponent, getJ2EEManagedObjectId |
| Method Detail |
|---|
EJBResponse rpcInvoke(EJBRemoteRequest request)
request - the EJB request.
EJBResponse localCall(EJBLocalRequest localCallRequest)
localCallRequest - the given request
void notifyTimeout(javax.ejb.Timer timer,
IMethodInfo methodInfo)
timer - the given timer object that will be given to the timer method.methodInfo - the method to use for the callback if applied on a specific method
void init()
throws FactoryException
FactoryException - if the initialization fails.
void start()
throws FactoryException
FactoryException - if factory doesn't startvoid stop()
String getClassName()
EZBContainer getContainer()
Context getJavaContext()
void setJavaContext(Context javaContext)
javaContext - the java: context.IBeanInfo getBeanInfo()
org.ow2.util.pool.api.Pool<PoolType,Clue> getPool()
String getId()
EZBTimerService getTimerService()
void setInvocationContextFactory(EZBInvocationContextFactory invocationContextFactory)
invocationContextFactory - the given invocation context factoryEZBInvocationContextFactory getInvocationContextFactory()
OperationState getOperationState()
InheritableThreadLocal<OperationState> getOperationStateThreadLocal()
InheritableThreadLocal<Map<String,Object>> getContextDataThreadLocal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||