org.lateralnz.panther.wrapper
Class KeyedPoolableBeanObjectFactory

java.lang.Object
  extended by org.lateralnz.panther.wrapper.KeyedPoolableBeanObjectFactory
All Implemented Interfaces:
org.apache.commons.pool.KeyedPoolableObjectFactory

public class KeyedPoolableBeanObjectFactory
extends java.lang.Object
implements org.apache.commons.pool.KeyedPoolableObjectFactory


Constructor Summary
KeyedPoolableBeanObjectFactory()
           
 
Method Summary
 void activateObject(java.lang.Object key, java.lang.Object obj)
           
 void destroyObject(java.lang.Object key, java.lang.Object obj)
           
 java.lang.Object makeObject(java.lang.Object key)
           
 void passivateObject(java.lang.Object key, java.lang.Object obj)
           
 void setWrapperClass(java.lang.Object key, java.lang.Class wrapperClass)
           
 boolean validateObject(java.lang.Object key, java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyedPoolableBeanObjectFactory

public KeyedPoolableBeanObjectFactory()
Method Detail

setWrapperClass

public void setWrapperClass(java.lang.Object key,
                            java.lang.Class wrapperClass)

activateObject

public void activateObject(java.lang.Object key,
                           java.lang.Object obj)
                    throws java.lang.Exception
Specified by:
activateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Throws:
java.lang.Exception

destroyObject

public void destroyObject(java.lang.Object key,
                          java.lang.Object obj)
                   throws java.lang.Exception
Specified by:
destroyObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Throws:
java.lang.Exception

makeObject

public java.lang.Object makeObject(java.lang.Object key)
                            throws java.lang.Exception
Specified by:
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Throws:
java.lang.Exception

passivateObject

public void passivateObject(java.lang.Object key,
                            java.lang.Object obj)
                     throws java.lang.Exception
Specified by:
passivateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Throws:
java.lang.Exception

validateObject

public boolean validateObject(java.lang.Object key,
                              java.lang.Object obj)
Specified by:
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory