com.groiss.component
Class ServiceAdapter

java.lang.Object
  extended by com.groiss.component.ServiceAdapter
All Implemented Interfaces:
Lifecycle, Service

public class ServiceAdapter
extends java.lang.Object
implements Service

This is an adapter class for the service interface


Constructor Summary
ServiceAdapter()
           
 
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.
 void shutdown()
          This method is called on shutdown.
 void startup()
          This method is called when the object is "started".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceAdapter

public ServiceAdapter()
Method Detail

startup

public void startup()
Description copied from interface: Lifecycle
This method is called when the object is "started".

Specified by:
startup in interface Lifecycle

shutdown

public void shutdown()
Description copied from interface: Lifecycle
This method is called on shutdown.

Specified by:
shutdown in interface Lifecycle

isRunning

public boolean isRunning()
Description copied from interface: Service
Ask the object if it has been started

Specified by:
isRunning in interface Service
Returns:
true if running.

reconfigure

public void reconfigure()
Description copied from interface: Service
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.

Specified by:
reconfigure in interface Service


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