|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.PBKeyedPoolableObjectFactory
This is a KeyedPoolableObjectFactory implementation,
manage the life-cycle of PersistenceBroker instances
hold in an KeyedObjectPool.
| Constructor Summary | |
PersistenceBrokerFactoryDefaultImpl.PBKeyedPoolableObjectFactory(PersistenceBrokerFactoryDefaultImpl pbf,
org.apache.commons.pool.KeyedObjectPool pool)
|
|
| Method Summary | |
void |
activateObject(java.lang.Object key,
java.lang.Object obj)
Called before borrow object from pool. |
void |
destroyObject(java.lang.Object key,
java.lang.Object obj)
Do all cleanup stuff here. |
java.lang.Object |
makeObject(java.lang.Object key)
|
void |
passivateObject(java.lang.Object key,
java.lang.Object obj)
Called before return object to pool. |
boolean |
validateObject(java.lang.Object key,
java.lang.Object obj)
Check if the given PersistenceBroker instance was already in transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PersistenceBrokerFactoryDefaultImpl.PBKeyedPoolableObjectFactory(PersistenceBrokerFactoryDefaultImpl pbf,
org.apache.commons.pool.KeyedObjectPool pool)
| Method Detail |
public java.lang.Object makeObject(java.lang.Object key)
throws java.lang.Exception
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryjava.lang.Exception
public void destroyObject(java.lang.Object key,
java.lang.Object obj)
throws java.lang.Exception
destroyObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryjava.lang.Exception
public boolean validateObject(java.lang.Object key,
java.lang.Object obj)
PBPoolInfo.init()
method does set testOnBorrow(true).
(Default was false, thus this method wasn't called)
See documentation jakarta-connons-pool api.
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
public void activateObject(java.lang.Object key,
java.lang.Object obj)
throws java.lang.Exception
activateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryjava.lang.Exception
public void passivateObject(java.lang.Object key,
java.lang.Object obj)
throws java.lang.Exception
passivateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactoryjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||