org.osgi.framework.ServiceListener Interface Reference

Inheritance diagram for org.osgi.framework.ServiceListener:

org.knopflerfish.framework.Listeners org.osgi.framework.AllServiceListener org.osgi.util.tracker.ServiceTracker.Tracked org.osgi.util.tracker.ServiceTracker.AllTracked org.osgi.util.tracker.ServiceTracker.AllTracked

List of all members.


Detailed Description

A ServiceEvent listener.

When a ServiceEvent is fired, it is synchronously delivered to a BundleListener.

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 is registered, 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.

ServiceEvent object delivery to ServiceListener objects is further filtered according to package sources as defined in ServiceReference#isAssignableTo(Bundle, String).

Version:
Revision
1.12
See also:
ServiceEvent

ServicePermission

Definition at line 56 of file ServiceListener.java.


Public Member Functions

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

Member Function Documentation

void org.osgi.framework.ServiceListener.serviceChanged ( ServiceEvent  event  ) 

Receives notification that a service has had a lifecycle change.

Parameters:
event The ServiceEvent object.

Implemented in org.osgi.util.tracker.ServiceTracker.Tracked.

Referenced by org.openmobileis.bundle.osgi.synchro.BaseBundleLoaderActivator.start().


The documentation for this interface was generated from the following file:
Generated on Mon Jan 11 21:19:24 2010 for OpenMobileIS by  doxygen 1.5.4