Interface Lifecycle
-
- All Known Implementing Classes:
AbstractLifecycle
public interface LifecycleSomething 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 voiddestroy()Destroy the object.voidinit()Initialize the object.booleanisRunning()
-
-
-
Method Detail
-
init
void init() throws ModuleSetupRuntimeException
Initialize the object.- Throws:
ModuleSetupRuntimeException- if initialization failed
-
destroy
void destroy() throws ModuleSetupRuntimeExceptionDestroy the object.- Throws:
ModuleSetupRuntimeException- if destruction failed
-
isRunning
boolean isRunning()
-
-