Interface ApplicationServiceListener
-
- All Superinterfaces:
java.util.EventListener
public interface ApplicationServiceListener extends java.util.EventListenerAnApplicationServiceEventlistener. When aServiceEventis fired, it is converted to anApplictionServiceEventand it is synchronously delivered to anApplicationServiceListener.ApplicationServiceListeneris a listener interface that may be implemented by an application developer.An
ApplicationServiceListenerobject is registered with the Framework using theApplicationContext.addServiceListenermethod.ApplicationServiceListenerobjects are called with anApplicationServiceEventobject when a service is registered, modified, or is in the process of unregistering.ApplicationServiceEventobject delivery toApplicationServiceListenerobjects is filtered by the filter specified when the listener was registered. If the Java Runtime Environment supports permissions, then additional filtering is done.ApplicationServiceEventobjects are only delivered to the listener if the application which defines the listener object's class has the appropriateServicePermissionto get the service using at least one of the named classes the service was registered under, and the application specified its dependence on the corresponding service in the application metadata.ApplicationServiceEventobject delivery toApplicationServiceListenerobjects is further filtered according to package sources as defined inServiceReference.isAssignableTo(Bundle, String).- See Also:
ApplicationServiceEvent,ServicePermission
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidserviceChanged(ApplicationServiceEvent event)Receives notification that a service has had a lifecycle change.
-
-
-
Method Detail
-
serviceChanged
void serviceChanged(ApplicationServiceEvent event)
Receives notification that a service has had a lifecycle change.- Parameters:
event- TheApplicationServiceEventobject.
-
-