com.groiss.component
Interface Service

All Superinterfaces:
Lifecycle
All Known Subinterfaces:
ILogger
All Known Implementing Classes:
DBConnPool, DefaultApplicationAdapter, Logger, 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
 boolean isRunning()
          Ask the object if it has been started
 void reconfigure()
          Reconfigure gives the service the chance to react on configuration changes.
 
Methods inherited from interface com.groiss.component.Lifecycle
shutdown, startup
 

Method Detail

isRunning

boolean isRunning()
Ask the object if it has been started

Returns:
true if running.

reconfigure

void reconfigure()
Reconfigure gives the service the chance to react on configuration changes. Whenever the configuration is changed the ServiceManager calls this method for all managed services.



@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.