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 void
activateObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject)
void
destroyObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject)
org.apache.commons.pool2.PooledObject<GroovyPoolEntry>
makeObject(GroovyPoolKey groovyPoolKey)
void
passivateObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject)
boolean
validateObject(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:
makeObject
in 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:
activateObject
in 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:
destroyObject
in 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:
passivateObject
in interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<GroovyPoolKey,GroovyPoolEntry>
- Throws:
Exception
-
validateObject
public boolean validateObject(GroovyPoolKey groovyPoolKey, org.apache.commons.pool2.PooledObject<GroovyPoolEntry> pooledObject)
- Specified by:
validateObject
in interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<GroovyPoolKey,GroovyPoolEntry>
-
-