org.osesb.objectpools
Class JAXRPCClientKeyedPoolFactory.JAXRPCClientPoolableObjectFactory

java.lang.Object
  extended by org.osesb.objectpools.JAXRPCClientKeyedPoolFactory.JAXRPCClientPoolableObjectFactory
All Implemented Interfaces:
org.apache.commons.pool.KeyedPoolableObjectFactory
Enclosing class:
JAXRPCClientKeyedPoolFactory

protected static class JAXRPCClientKeyedPoolFactory.JAXRPCClientPoolableObjectFactory
extends java.lang.Object
implements org.apache.commons.pool.KeyedPoolableObjectFactory

Inner class that implements org.apache.commons.pool.KeyedPoolableObjectFactory, which is instantiated by the enclosing class and passed to GenericObjectPool's constructor.


Field Summary
protected  java.lang.String thisClassName
          The full name of this class
 
Constructor Summary
JAXRPCClientKeyedPoolFactory.JAXRPCClientPoolableObjectFactory()
          Create a new instance of JAXRPCPoolableObjectFactory.
 
Method Summary
 void activateObject(java.lang.Object poolKey, java.lang.Object obj)
          Invoked on every object before it is returned FROM the pool.
 void destroyObject(java.lang.Object poolKey, java.lang.Object obj)
          Invoked on every object when it is being "dropped" from the pool.
 java.lang.Object makeObject(java.lang.Object poolKey)
          Called whenever a new instance of a pooled object is needed.
 void passivateObject(java.lang.Object poolKey, java.lang.Object obj)
          Invoked on every object before it is returned TO the pool.
 boolean validateObject(java.lang.Object poolKey, java.lang.Object obj)
          Invoked in an implementation-specific fashion to determine if an object is still valid to be returned by the pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thisClassName

protected java.lang.String thisClassName
The full name of this class

Constructor Detail

JAXRPCClientKeyedPoolFactory.JAXRPCClientPoolableObjectFactory

public JAXRPCClientKeyedPoolFactory.JAXRPCClientPoolableObjectFactory()
Create a new instance of JAXRPCPoolableObjectFactory.

Method Detail

makeObject

public java.lang.Object makeObject(java.lang.Object poolKey)
                            throws java.lang.Exception
Called whenever a new instance of a pooled object is needed.

Specified by:
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Parameters:
poolKey - poolKey points to a pooled object configuration entry in the JAXRPCClientKeyedPoolFactory configuration file.
Throws:
java.lang.Exception

destroyObject

public void destroyObject(java.lang.Object poolKey,
                          java.lang.Object obj)
Invoked on every object when it is being "dropped" from the pool.

Specified by:
destroyObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory

validateObject

public boolean validateObject(java.lang.Object poolKey,
                              java.lang.Object obj)
Invoked in an implementation-specific fashion to determine if an object is still valid to be returned by the pool.

Specified by:
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory

activateObject

public void activateObject(java.lang.Object poolKey,
                           java.lang.Object obj)
Invoked on every object before it is returned FROM the pool.

Specified by:
activateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory

passivateObject

public void passivateObject(java.lang.Object poolKey,
                            java.lang.Object obj)
Invoked on every object before it is returned TO the pool.

Specified by:
passivateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory