org.picocontainer
Interface Disposable

All Known Subinterfaces:
MutablePicoContainer, PicoContainer
All Known Implementing Classes:
AbstractDelegatingMutablePicoContainer, CachingPicoContainer, DefaultPicoContainer, EmptyPicoContainer, ImmutablePicoContainer, ImplementationHidingCachingPicoContainer, ImplementationHidingPicoContainer

public interface Disposable

An interface which is implemented by components that need to dispose of resources during the shutdown of that component. The dispose() must be called once during shutdown, directly after Startable.stop() (if the component implements the Startable interface).

Since:
1.0
Version:
$Revision: 1570 $
See Also:
the Startable interface if you need to start() and stop() semantics., the main PicoContainer interface (and hence its subinterfaces and implementations like {@link org.picocontainer.defaults.DefaultPicoContainer}) implement this interface.

Method Summary
 void dispose()
          Dispose this component.
 

Method Detail

dispose

void dispose()
Dispose this component. The component should deallocate all resources. The contract for this method defines a single call at the end of this component's life.