Details
-
Improvement
-
Resolution: Fixed
-
Major
-
3.5, 4.0
-
None
-
Java 6, Tomcat 7
-
shutdown clean up component
-
Unknown
-
N/A
-
N/A
-
Description
The org.xwiki.component.phase.Initializable interface works great to initialize Components.
However, components aren't currently given a chance to clean up resources before XWiki shutdown.
It would make sense to call the org.xwiki.component.phase.Disposable dispose() method on components before shutdown.
This would give components a chance to "properly clean up its resources" per the Disposable javadoc.
This could be used by a temporary file component to delete any outstanding files before XWiki shuts down,
or clean up database connections etc.
Attachments
Issue Links
- depends on
-
XCOMMONS-371 Provide method to dispose all components stored in a EmbeddableComponentManager
- Closed