org.base.apps.xml.pool
Class XmlResourceFactory
java.lang.Object
org.base.apps.xml.pool.XmlResourceFactory
- All Implemented Interfaces:
- PoolableObjectFactory
public class XmlResourceFactory
- extends Object
- implements PoolableObjectFactory
Factory to manage lifecycle of XmlResources.
- Author:
- Kevan Simpson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlResourceFactory
public XmlResourceFactory(XmlResourcePool pool)
activateObject
public void activateObject(Object obj)
throws Exception
- Specified by:
activateObject in interface PoolableObjectFactory
- Throws:
Exception- See Also:
PoolableObjectFactory.activateObject(java.lang.Object)
destroyObject
public void destroyObject(Object obj)
throws Exception
- Specified by:
destroyObject in interface PoolableObjectFactory
- Throws:
Exception- See Also:
PoolableObjectFactory.destroyObject(java.lang.Object)
makeObject
public Object makeObject()
throws Exception
- Specified by:
makeObject in interface PoolableObjectFactory
- Throws:
Exception- See Also:
PoolableObjectFactory.makeObject()
passivateObject
public void passivateObject(Object obj)
throws Exception
- Specified by:
passivateObject in interface PoolableObjectFactory
- Throws:
Exception- See Also:
PoolableObjectFactory.passivateObject(java.lang.Object)
validateObject
public boolean validateObject(Object obj)
- Specified by:
validateObject in interface PoolableObjectFactory
- See Also:
PoolableObjectFactory.validateObject(java.lang.Object)
getPool
protected XmlResourcePool getPool()
- Returns:
- the pool
setPool
protected void setPool(XmlResourcePool pool)
- Parameters:
pool - the pool to set
Copyright 2011, Blue Agate Software Entity (BASE)