org.apache.commons.pool
Class VisitTrackerFactory

java.lang.Object
  extended by org.apache.commons.pool.VisitTrackerFactory
All Implemented Interfaces:
org.apache.commons.pool.KeyedPoolableObjectFactory, org.apache.commons.pool.PoolableObjectFactory

public class VisitTrackerFactory
extends Object
implements org.apache.commons.pool.PoolableObjectFactory, org.apache.commons.pool.KeyedPoolableObjectFactory

Factory that creates VisitTracker instances. Used to test Evictor runs.


Constructor Summary
VisitTrackerFactory()
           
 
Method Summary
 void activateObject(Object obj)
           
 void activateObject(Object key, Object obj)
           
 void destroyObject(Object obj)
           
 void destroyObject(Object key, Object obj)
           
 Object makeObject()
           
 Object makeObject(Object key)
           
 void passivateObject(Object obj)
           
 void passivateObject(Object key, Object obj)
           
 void resetId()
           
 boolean validateObject(Object obj)
           
 boolean validateObject(Object key, Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisitTrackerFactory

public VisitTrackerFactory()
Method Detail

makeObject

public Object makeObject()
Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory

makeObject

public Object makeObject(Object key)
Specified by:
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory

destroyObject

public void destroyObject(Object obj)
Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory

destroyObject

public void destroyObject(Object key,
                          Object obj)
Specified by:
destroyObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory

validateObject

public boolean validateObject(Object obj)
Specified by:
validateObject in interface org.apache.commons.pool.PoolableObjectFactory

validateObject

public boolean validateObject(Object key,
                              Object obj)
Specified by:
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory

activateObject

public void activateObject(Object obj)
                    throws Exception
Specified by:
activateObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
Exception

activateObject

public void activateObject(Object key,
                           Object obj)
                    throws Exception
Specified by:
activateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Throws:
Exception

passivateObject

public void passivateObject(Object obj)
                     throws Exception
Specified by:
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
Exception

passivateObject

public void passivateObject(Object key,
                            Object obj)
                     throws Exception
Specified by:
passivateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Throws:
Exception

resetId

public void resetId()


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.