This class marks classes, which require some work done for cleaning up. As a general policy you shouldn't call the {@link #dispose} method directly,but register your object to be chained with a parent disposable via {@link com.intellij.openapi.util.Disposer#register(Disposable,Disposable)}. If you're 100% sure that you should control disposion of your object manually, do not call the {@link #dispose} method either. Use {@link com.intellij.openapi.util.Disposer#dispose(Disposable)} instead, sincethere might be any object registered in chain.
Interface defining a disposable resource. This interface should be implemented when it is essential for the resource to be disposed after use, e.g. in order to avoid memory leaks.
@author Torgil Zethson
@since 1.2
Description: an Interface to offer a method to dispose objects immediately, so that they can cleanup (release locks, deregister on queues and so on) Initial Date: 10.11.2004
@author Felix Jost
An interface which is implemented by components that need to dispose of resources during the shutdown of that component. The {@link Disposable#dispose()} must be called once during shutdown, directly after {@link Startable#stop()} (if the component implements the {@link Startable} interface).
@version $Revision: 1.7 $
@see org.picocontainer.Startable the Startable interface if you need to start() andstop() semantics.
@author Nicolas Filotto
@version $Id$
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.