net.ontopia.topicmaps.impl.utils
Class StorePoolableObjectFactory
java.lang.Object
net.ontopia.topicmaps.impl.utils.StorePoolableObjectFactory
- All Implemented Interfaces:
- org.apache.commons.pool.PoolableObjectFactory
public class StorePoolableObjectFactory
- extends Object
- implements org.apache.commons.pool.PoolableObjectFactory
INTERNAL: A commons-pool PoolableObjectFactory that uses a
TopicMapStoreFactoryIF to create TopicMapStoreIF objects. This
class must be used with a commons-pool pool instance.
- Since:
- 2.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sfactory
protected TopicMapStoreFactoryIF sfactory
stores
public Collection<TopicMapStoreIF> stores
StorePoolableObjectFactory
public StorePoolableObjectFactory(TopicMapStoreFactoryIF sfactory)
makeObject
public Object makeObject()
throws Exception
- Specified by:
makeObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
destroyObject
public void destroyObject(Object o)
throws Exception
- Specified by:
destroyObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
validateObject
public boolean validateObject(Object o)
- Specified by:
validateObject
in interface org.apache.commons.pool.PoolableObjectFactory
activateObject
public void activateObject(Object o)
throws Exception
- Specified by:
activateObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
passivateObject
public void passivateObject(Object o)
throws Exception
- Specified by:
passivateObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
Copyright © 2000-2012 Ontopia.