public class ReflectionRecyclePolicy extends java.lang.Object implements RecyclePolicy
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Class[] |
EMPTY_PARAM_DEFS |
private static java.lang.Object[] |
EMPTY_PARAMS |
private java.lang.String |
m_methodName |
| Constructor and Description |
|---|
ReflectionRecyclePolicy(java.lang.String methodName)
Create the ReflectionRecyclePolicy using the supplied method name
as the magic method that gets called when an object is returned
to the pool.
|
private final java.lang.String m_methodName
private static final java.lang.Class[] EMPTY_PARAM_DEFS
private static final java.lang.Object[] EMPTY_PARAMS
public ReflectionRecyclePolicy(java.lang.String methodName)
methodName - the name of the method to callpublic void recycle(java.lang.Object pooledObject)
recycle in interface RecyclePolicypooledObject - the object to recyclepublic java.lang.String toString()
toString in class java.lang.Object