Package com.complexible.common.pool
Class DefaultPoolableObjectFactory
- java.lang.Object
-
- com.complexible.common.pool.DefaultPoolableObjectFactory
-
- All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory
public class DefaultPoolableObjectFactory extends java.lang.Object implements org.apache.commons.pool.PoolableObjectFactory
Provides a simple implementation of a PoolableObjectFactory that can be used with
ApachePoolConfig
.- Since:
- 0.6.5
- Version:
- 0.6.5
- Author:
- Michael Grove
-
-
Constructor Summary
Constructors Constructor Description DefaultPoolableObjectFactory(java.lang.Class theClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateObject(java.lang.Object o)
void
destroyObject(java.lang.Object o)
java.lang.Object
makeObject()
void
passivateObject(java.lang.Object o)
boolean
validateObject(java.lang.Object o)
-
-
-
Method Detail
-
makeObject
public java.lang.Object makeObject() throws java.lang.Exception
- Specified by:
makeObject
in interfaceorg.apache.commons.pool.PoolableObjectFactory
- Throws:
java.lang.Exception
-
destroyObject
public void destroyObject(java.lang.Object o) throws java.lang.Exception
- Specified by:
destroyObject
in interfaceorg.apache.commons.pool.PoolableObjectFactory
- Throws:
java.lang.Exception
-
validateObject
public boolean validateObject(java.lang.Object o)
- Specified by:
validateObject
in interfaceorg.apache.commons.pool.PoolableObjectFactory
-
activateObject
public final void activateObject(java.lang.Object o) throws java.lang.Exception
- Specified by:
activateObject
in interfaceorg.apache.commons.pool.PoolableObjectFactory
- Throws:
java.lang.Exception
-
passivateObject
public final void passivateObject(java.lang.Object o) throws java.lang.Exception
- Specified by:
passivateObject
in interfaceorg.apache.commons.pool.PoolableObjectFactory
- Throws:
java.lang.Exception
-
-