|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.d_haven.mpool.ReflectionRecyclePolicy
The ReflectionRecyclePolicy allows the user to specify a particular method to use for recycling their pooled objects regardless of whether the object implements any interfaces or not.
| Constructor Summary | |
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. |
|
| Method Summary | |
void |
recycle(java.lang.Object pooledObject)
Recycle the object included. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ReflectionRecyclePolicy(java.lang.String methodName)
methodName - the name of the method to call| Method Detail |
public void recycle(java.lang.Object pooledObject)
recycle in interface RecyclePolicypooledObject - the object to recyclepublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||