com.thoughtworks.proxy.kit
Class NoOperationResetter
java.lang.Object
com.thoughtworks.proxy.kit.NoOperationResetter
- All Implemented Interfaces:
- Resetter, Serializable
public class NoOperationResetter
- extends Object
- implements Resetter, Serializable
A Resetter that has no operation. This Resetter implementation will just return the object to the pool without
further interaction.
- Since:
- 0.2
- Author:
- Jörg Schaible
- See Also:
- Serialized Form
Method Summary |
boolean |
reset(Object object)
Reset the pooled object. Returns just true . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOperationResetter
public NoOperationResetter()
reset
public boolean reset(Object object)
- Reset the pooled object. The implementation may do anything to reset the state of the pooled element. If the
element is definately exhausted, a return value of
false
prevents the element from returning into
the pool and the instance is garbage collected. Returns just true
.
- Specified by:
reset
in interface Resetter
- Parameters:
object
- the object to reset
- Returns:
true
if the element can be used for further tasks.