public interface ServiceListener extends java.util.EventListener
All Superinterfaces: java.util.EventListener
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 void | serviceChanged(ServiceEvent) |
Receive notification that a service has had a change occur in its life cycle. |
public void serviceChanged(ServiceEvent event)
Receive notification that a service has had a change occur in its life cycle.
Parameters:
3.15.182.62