Package org.xwiki.component.phase
Interface Disposable
-
public interface Disposable
If a singleton component could be destroyed and replaced in the component manager, it should implement this interface to properly clean up its resources. Any component depending of a component exposing this interface should be aware that this component could be destroyed and should prevent itself to use a destroyed component.- Since:
- 3.3M2
- Version:
- $Id: 96fb8204ddbb8b6c62c1618362ed20bb3a1ab157 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispose()
Method called by the Component Manager when a singleton component is unregistered and should be destroyed.
-
-
-
Method Detail
-
dispose
void dispose() throws ComponentLifecycleException
Method called by the Component Manager when a singleton component is unregistered and should be destroyed.- Throws:
ComponentLifecycleException
- if an error happens during a component's destruction
-
-