org.apache.avalon.framework.activity
Interface Disposable

All Known Implementing Classes:
ComponentHandler, DefaultComponentManager, DefaultComponentSelector, DefaultPool, JdbcConnection, JdbcConnectionPool

public interface Disposable

The Dispose interface should be implemented by classes that need to dispose of internal resources prior to the destruction of the implementing instance.

Author:
Federico Barbieri, Pierpaolo Fumagalli, Stefano Mazzocchi, Peter Donald

Method Summary
 void dispose()
          The dispose operation will be invoked by a client on completion of the useful life of instance.
 

Method Detail

dispose

public void dispose()
             throws java.lang.Exception
The dispose operation will be invoked by a client on completion of the useful life of instance. This method is guaranteed to be called after the stop() method if the Component supports the Stoppable interface. This method is responsible for releaseing/destroying any resources aquired by the Component during it's lifecycle.


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.