|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.kernel.application.container.spi.ejb.BeanInstanceFactory
public class BeanInstanceFactory
Bean Instance Factory
| Constructor Summary | |
|---|---|
BeanInstanceFactory(ClassLoader beanClassLoader,
Deployment.SessionBean bean,
SessionContext sessionContext)
|
|
| Method Summary | |
|---|---|
void |
activateObject(Object obj)
Reinitialize an instance to be returned by the pool. |
void |
destroyObject(Object obj)
Destroys an instance no longer needed by the pool. |
Class |
getInstanceClass()
|
Object |
makeObject()
Creates an instance that can be returned by the pool. |
void |
passivateObject(Object obj)
Uninitialize an instance to be returned to the pool. |
Object |
setBeanContext()
Replace the caller's context by the EJB's context. |
void |
setCallerContext(Object callerContext)
Replace the EJB's context by the caller's context. |
boolean |
validateObject(Object obj)
Ensures that the instance is safe to be returned by the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanInstanceFactory(ClassLoader beanClassLoader,
Deployment.SessionBean bean,
SessionContext sessionContext)
throws ClassNotFoundException,
SecurityException,
NoSuchMethodException
ClassNotFoundException
SecurityException
NoSuchMethodException| Method Detail |
|---|
public Class getInstanceClass()
public Object makeObject()
throws Exception
PoolableObjectFactory
makeObject in interface PoolableObjectFactoryException
public void destroyObject(Object obj)
throws Exception
PoolableObjectFactory
destroyObject in interface PoolableObjectFactoryobj - the instance to be destroyed
Exceptionpublic boolean validateObject(Object obj)
PoolableObjectFactory
validateObject in interface PoolableObjectFactoryobj - the instance to be validated
public void activateObject(Object obj)
throws Exception
PoolableObjectFactory
activateObject in interface PoolableObjectFactoryobj - the instance to be activated
Exception
public void passivateObject(Object obj)
throws Exception
PoolableObjectFactory
passivateObject in interface PoolableObjectFactoryobj - the instance to be passivated
Exceptionpublic Object setBeanContext()
ContextSwitcher
setBeanContext in interface ContextSwitcherpublic void setCallerContext(Object callerContext)
ContextSwitcher
setCallerContext in interface ContextSwitchercallerContext - the caller's context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||