org.d_haven.mpool
Interface RecyclePolicy

All Known Implementing Classes:
NullRecyclePolicy, ReflectionRecyclePolicy, ResettableRecyclePolicy

public interface RecyclePolicy

The recycle policy is present so that you can use whatever method you desire to recycle your objects and components. You can use the provided Resttable interface, or provide your own, or simply use reflection.


Method Summary
 void recycle(java.lang.Object pooledObject)
          Recycle the object included.
 

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.

Parameters:
pooledObject - the object to recycle


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