org.apache.tapestry.util
Class RegexpPoolObjectFactory

java.lang.Object
  extended by org.apache.commons.pool.BaseKeyedPoolableObjectFactory
      extended by org.apache.tapestry.util.RegexpPoolObjectFactory
All Implemented Interfaces:
org.apache.commons.pool.KeyedPoolableObjectFactory

public class RegexpPoolObjectFactory
extends org.apache.commons.pool.BaseKeyedPoolableObjectFactory

Implementation of BaseKeyedPoolableObjectFactory for regexp patterns that compiles incoming String regexp patterns into compiled Pattern objects.


Constructor Summary
RegexpPoolObjectFactory()
           
 
Method Summary
 Object makeObject(Object pattern)
          
 
Methods inherited from class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
activateObject, destroyObject, passivateObject, validateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexpPoolObjectFactory

public RegexpPoolObjectFactory()
Method Detail

makeObject

public Object makeObject(Object pattern)
                  throws Exception

Specified by:
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Specified by:
makeObject in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
Throws:
Exception


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.