Interface Service

All Superinterfaces:
Lifecycle
All Known Subinterfaces:
ApplicationAdapter
All Known Implementing Classes:
DBConnPool, DefaultApplicationAdapter, ServiceAdapter, Settings, TimerManager

public interface Service extends Lifecycle
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 Type
    Method
    Description
    default boolean
    Ask the object if it has been started
    default void
    Reconfigure the service.

    Methods inherited from interface com.groiss.component.Lifecycle

    shutdown, startup
  • 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.