org.apache.felix.dm
Interface ComponentStateListener


public interface ComponentStateListener

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

Author:
Felix Project Team

Method Summary
 void started(Component component)
          Called when the component is started.
 void starting(Component component)
          Called when the component is starting.
 void stopped(Component component)
          Called when the component is stopped.
 void stopping(Component component)
          Called when the component is stopping.
 

Method Detail

starting

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

Parameters:
component - the component

started

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

Parameters:
component - the component

stopping

void stopping(Component component)
Called when the component is stopping. At this point, the component is still registered.

Parameters:
component - the component

stopped

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

Parameters:
component - the component


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.