ServiceListener

Syntax

public interface ServiceListener extends java.util.EventListener

All Superinterfaces: java.util.EventListener

Description

ServiceEvent listener. ServiceListener is an interface that may be implemented by a bundle programmer. A ServiceListener is registered with the framework using a BundleContext.addServiceListener(ServiceListener, String) method. ServiceListeners are called with a ServiceEvent when a service has been registered or modified, or when a service is in the process of unregistering.

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

See Also: ServiceEvent, ServicePermission

Member Summary
Methods
public voidserviceChanged(ServiceEvent)
 Receive notification that a service has had a change occur in its life cycle.

Methods

serviceChanged(ServiceEvent)
public void serviceChanged(ServiceEvent event)

Receive notification that a service has had a change occur in its life cycle.

Parameters:

event— The ServiceEvent.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.182.62