org.norther.tammi.core.pool
Class RecyclableSupport

java.lang.Object
  extended by org.norther.tammi.core.pool.RecyclableSupport
All Implemented Interfaces:
Serializable, Recyclable
Direct Known Subclasses:
DefaultFilterChain, PoolableSupport

public class RecyclableSupport
extends Object
implements Recyclable, Serializable

A support class for recyclable objects implementing default methods.

Version:
$Id: RecyclableSupport.java,v 1.5 2009/09/28 15:08:44 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
RecyclableSupport()
          Constructs a new recyclable support.
RecyclableSupport(Recyclable adaptee)
          Constructs a new recyclable adapter.
 
Method Summary
 void dispose()
          Disposes the object by setting its disposed flag.
 boolean isDisposed()
          Checks whether the object is disposed.
 void recycle()
          Recycles the object by removing its disposed flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecyclableSupport

public RecyclableSupport()
Constructs a new recyclable support.


RecyclableSupport

public RecyclableSupport(Recyclable adaptee)
Constructs a new recyclable adapter.

Parameters:
adaptee - the recyclable adaptee.
Method Detail

recycle

public void recycle()
Recycles the object by removing its disposed flag.

Specified by:
recycle in interface Recyclable

dispose

public void dispose()
Disposes the object by setting its disposed flag.

Specified by:
dispose in interface Recyclable

isDisposed

public boolean isDisposed()
Checks whether the object is disposed.

Specified by:
isDisposed in interface Recyclable
Returns:
true, if the object is disposed.


Copyright © 2004 The Norther Organization. All rights reserved.