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$
|
Method Summary |
void |
dispose()
Method called by the Component Manager when a singleton component is unregistered and should be destroyed. |
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
Copyright © 2004-2012 XWiki. All Rights Reserved.