Package step.expressions
Class GroovyPoolFactory
- java.lang.Object
-
- step.expressions.GroovyPoolFactory
-
- All Implemented Interfaces:
org.apache.commons.pool2.KeyedPooledObjectFactory<GroovyPoolKey,GroovyPoolEntry>
public class GroovyPoolFactory extends Object implements org.apache.commons.pool2.KeyedPooledObjectFactory<GroovyPoolKey,GroovyPoolEntry>
-
-
Constructor Summary
Constructors Constructor Description GroovyPoolFactory(String scriptBaseClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject)voiddestroyObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject)org.apache.commons.pool2.PooledObject<GroovyPoolEntry>makeObject(GroovyPoolKey groovyPoolKey)voidpassivateObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject)booleanvalidateObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject)
-
-
-
Constructor Detail
-
GroovyPoolFactory
public GroovyPoolFactory(String scriptBaseClass)
-
-
Method Detail
-
makeObject
public org.apache.commons.pool2.PooledObject<GroovyPoolEntry> makeObject(GroovyPoolKey groovyPoolKey) throws Exception
- Specified by:
makeObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<GroovyPoolKey,GroovyPoolEntry>- Throws:
Exception
-
activateObject
public void activateObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject) throws Exception
- Specified by:
activateObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<GroovyPoolKey,GroovyPoolEntry>- Throws:
Exception
-
destroyObject
public void destroyObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject) throws Exception
- Specified by:
destroyObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<GroovyPoolKey,GroovyPoolEntry>- Throws:
Exception
-
passivateObject
public void passivateObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject) throws Exception
- Specified by:
passivateObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<GroovyPoolKey,GroovyPoolEntry>- Throws:
Exception
-
validateObject
public boolean validateObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject)
- Specified by:
validateObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<GroovyPoolKey,GroovyPoolEntry>
-
-