public class PooledDateFormatFactory
extends java.lang.Object
implements org.apache.commons.pool.PoolableObjectFactory
Constructor and Description |
---|
PooledDateFormatFactory(java.lang.String pattern)
Builds a new pooled object factory.
|
Modifier and Type | Method and Description |
---|---|
void |
activateObject(java.lang.Object object) |
void |
destroyObject(java.lang.Object object) |
java.lang.Object |
makeObject() |
void |
passivateObject(java.lang.Object object) |
boolean |
validateObject(java.lang.Object object) |
public PooledDateFormatFactory(java.lang.String pattern)
pattern
- - Date format to be used in the SimpleDateFormat instance.public void activateObject(java.lang.Object object) throws java.lang.Exception
activateObject
in interface org.apache.commons.pool.PoolableObjectFactory
java.lang.Exception
public void destroyObject(java.lang.Object object) throws java.lang.Exception
destroyObject
in interface org.apache.commons.pool.PoolableObjectFactory
java.lang.Exception
public java.lang.Object makeObject() throws java.lang.Exception
makeObject
in interface org.apache.commons.pool.PoolableObjectFactory
java.lang.Exception
public void passivateObject(java.lang.Object object) throws java.lang.Exception
passivateObject
in interface org.apache.commons.pool.PoolableObjectFactory
java.lang.Exception
public boolean validateObject(java.lang.Object object)
validateObject
in interface org.apache.commons.pool.PoolableObjectFactory