Interface Lifecycle
-
- All Known Implementing Classes:
AbstractLifecycle
public interface Lifecycle
Something which can beinit()
-ialized anddestroy()
-d.Annotated so that Dependency Injection Frameworks (whichever) automatically call these methods during wiring.
- Author:
- Michael Vorburger
- See Also:
AbstractLifecycle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
destroy()
Destroy the object.void
init()
Initialize the object.boolean
isRunning()
-
-
-
Method Detail
-
init
void init() throws ModuleSetupRuntimeException
Initialize the object.- Throws:
ModuleSetupRuntimeException
- if initialization failed
-
destroy
void destroy() throws ModuleSetupRuntimeException
Destroy the object.- Throws:
ModuleSetupRuntimeException
- if destruction failed
-
isRunning
boolean isRunning()
-
-