org.norther.tammi.core.pool
Class PoolableSupport

java.lang.Object
  extended by org.norther.tammi.core.pool.RecyclableSupport
      extended by org.norther.tammi.core.pool.PoolableSupport
All Implemented Interfaces:
Serializable, Poolable, Recyclable
Direct Known Subclasses:
AbstractConnection, DefaultSession, DefaultTemplateContext, GlobalTool

public class PoolableSupport
extends RecyclableSupport
implements Poolable

A support class for recyclable objects providing a pooling method.

Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
PoolableSupport()
          Constructs a new poolable support.
PoolableSupport(Poolable adaptee)
          Constructs a new poolable adapter.
 
Method Summary
 void disposed()
          A call back indicating that this instance is not needed any more and can be disposed.
 void recycled(MBeanReference instance)
          A callback specifying the pool, from which this instance was recycled.
 
Methods inherited from class org.norther.tammi.core.pool.RecyclableSupport
dispose, isDisposed, recycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.core.pool.Recyclable
dispose, isDisposed, recycle
 

Constructor Detail

PoolableSupport

public PoolableSupport()
Constructs a new poolable support.


PoolableSupport

public PoolableSupport(Poolable adaptee)
Constructs a new poolable adapter.

Parameters:
adaptee - the poolable adaptee.
Method Detail

recycled

public void recycled(MBeanReference instance)
Description copied from interface: Poolable
A callback specifying the pool, from which this instance was recycled.

Specified by:
recycled in interface Poolable
Parameters:
instance - the pool MBean reference.

disposed

public void disposed()
Description copied from interface: Poolable
A call back indicating that this instance is not needed any more and can be disposed.

Specified by:
disposed in interface Poolable


Copyright © 2004 The Norther Organization. All rights reserved.