org.apache.felix.dependencymanager
Interface ServiceStateListener


public interface ServiceStateListener

This interface can be used to register a service state listener. Service state listeners are called whenever a service state changes. You get notified when the service is starting, started, stopping and stopped. Each callback includes a reference to the service in question.

Author:
Felix Project Team

Method Summary
 void started(Service service)
          Called when the service is started.
 void starting(Service service)
          Called when the service is starting.
 void stopped(Service service)
          Called when the service is stopped.
 void stopping(Service service)
          Called when the service is stopping.
 

Method Detail

starting

void starting(Service service)
Called when the service is starting. At this point, the required dependencies have been injected, but the service has not been registered yet.

Parameters:
service - the service

started

void started(Service service)
Called when the service is started. At this point, the service has been registered.

Parameters:
service - the service

stopping

void stopping(Service service)
Called when the service is stopping. At this point, the service is still registered.

Parameters:
service - the service

stopped

void stopped(Service service)
Called when the service is stopped. At this point, the service has been unregistered.

Parameters:
service - the service