Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
| OSGi Service Platform Release 3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.osgi.framework
Interface ServiceListener

All Superinterfaces:
  java.util.EventListener

public interface ServiceListener
extends java.util.EventListener

A `ServiceEvent` listener.

`ServiceListener` is a listener interface that may be implemented by a bundle developer.

A `ServiceListener` object is registered with the Framework using the `BundleContext.addServiceListener` method. `ServiceListener` objects are called with a `ServiceEvent` object when a service has been registered or modified, or is in the process of unregistering.

`ServiceEvent` object delivery to `ServiceListener` objects is filtered by the filter specified when the listener was registered. If the Java Runtime Environment supports permissions, then additional filtering is done. `ServiceEvent` objects are only delivered to the listener if the bundle which defines the listener object's class has the appropriate `ServicePermission` to get the service using at least one of the named classes the service was registered under.

See Also:
  `ServiceEvent`, `ServicePermission`

Method Summary
`void` | `serviceChanged(ServiceEvent event)` Receives notification that a service has had a lifecycle change.

Method Detail

### serviceChanged

    public void serviceChanged(ServiceEvent event)

  Receives notification that a service has had a lifecycle change.
  Parameters:
    `event` - The `ServiceEvent` object.

Overview | Package | Class | Tree | Serialized | Deprecated | Index | Help
| OSGi Service Platform Release 3
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) OSGi Alliance (2000, 2003). All Rights Reserved.