Package com.groiss.component
Interface Service
- All Superinterfaces:
Lifecycle
- All Known Subinterfaces:
ApplicationAdapter
- All Known Implementing Classes:
DBConnPool
,DefaultApplicationAdapter
,ServiceAdapter
,Settings
,TimerManager
Services are Java objects that have a lifecycle, a service can be started, stopped,
asked for its state and reconfigured. The ServiceManager class is used to manage services.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Ask the object if it has been starteddefault void
Reconfigure the service.
-
Method Details
-
isRunning
default boolean isRunning()Ask the object if it has been started- Returns:
- true if running.
-
reconfigure
default void reconfigure()Reconfigure the service. We suggest, to implement this method, if you want to reconfigure the service from other components.
-