org.picocontainer

Interface Disposable

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 stop (if the component implements the Startable interface).

Since: 1.0

See Also: the Startable interface if you need to start() and stop() semantics. the main PicoContainer interface (and hence its subinterfaces and implementations like org.picocontainer.defaults.DefaultPicoContainer) implement this interface.

Method Summary
voiddispose()
Dispose this component.

Method Detail

dispose

public 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.