org.d_haven.mpool
Class ResettableRecyclePolicy

java.lang.Object
  extended byorg.d_haven.mpool.ResettableRecyclePolicy
All Implemented Interfaces:
RecyclePolicy

public class ResettableRecyclePolicy
extends java.lang.Object
implements RecyclePolicy

This implementation of the ResettableRecyclePolicy is the default implementation for the system. Any class that implements the Resettable interface will be recycled. Classes that have a reset method but do not implement the interface will not be recycled.


Constructor Summary
ResettableRecyclePolicy()
           
 
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

ResettableRecyclePolicy

public ResettableRecyclePolicy()
Method Detail

recycle

public void recycle(java.lang.Object pooledObject)
Recycle the object included. If the object is not supposed to recycle at all, then this method does nothing.

Specified by:
recycle in interface RecyclePolicy
Parameters:
pooledObject - the object to recycle

toString

public java.lang.String toString()


Copyright © 2004-2005 D-Haven.org. All Rights Reserved.