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: f486d8185e2758c06ef2f429a54c48c60b77a57d $
|
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–2013 XWiki. All rights reserved.