org.jfox.ejb
Class EJBPoolableObject

java.lang.Object
  extended byorg.jfox.ejb.EJBPoolableObject
All Implemented Interfaces:
PoolableObject

public class EJBPoolableObject
extends java.lang.Object
implements PoolableObject

封装一个 EJBObject Bean instance , 使其可以被缓存到 ObjectPool 中


Constructor Summary
EJBPoolableObject(javax.ejb.EnterpriseBean instance)
           
 
Method Summary
 void activate()
          actvite the object before it be retrived
 javax.ejb.EnterpriseBean getBeanInstance()
           
static void main(java.lang.String[] args)
           
 void passivate()
          passivate the object before it be restored, set the status to initialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBPoolableObject

public EJBPoolableObject(javax.ejb.EnterpriseBean instance)
Method Detail

getBeanInstance

public javax.ejb.EnterpriseBean getBeanInstance()

activate

public void activate()
              throws java.lang.Exception
Description copied from interface: PoolableObject
actvite the object before it be retrived

Specified by:
activate in interface PoolableObject
Throws:
java.lang.Exception

passivate

public void passivate()
               throws java.lang.Exception
Description copied from interface: PoolableObject
passivate the object before it be restored, set the status to initialized

Specified by:
passivate in interface PoolableObject
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)