org.jboss.minerva.pools
Interface PooledObject

All Known Implementing Classes:
ConnectionInPool, XAConnectionImpl

public interface PooledObject

Optional interface for an object in an ObjectPool. If the objects created by the ObjcetFactory implement this, the pool will register as a listener when an object is checked out, and deregister when the object is returned. Then if the object sends a close or error event, the pool will return the object to the pool without the client having to do so explicitly.

Version:
$Revision: 1.1 $
Author:
Aaron Mulder (ammulder@alumni.princeton.edu)

Method Summary
 void addPoolEventListener(PoolEventListener listener)
          Adds a new listener.
 void removePoolEventListener(PoolEventListener listener)
          Removes a listener.
 

Method Detail

addPoolEventListener

public void addPoolEventListener(PoolEventListener listener)
Adds a new listener.

removePoolEventListener

public void removePoolEventListener(PoolEventListener listener)
Removes a listener.


Copyright © 2000 The jBoss Organization. All Rights Reserved.