Interface ApplicationServiceListener
-
- All Superinterfaces:
java.util.EventListener
public interface ApplicationServiceListener extends java.util.EventListener
AnApplicationServiceEvent
listener. When aServiceEvent
is fired, it is converted to anApplictionServiceEvent
and it is synchronously delivered to anApplicationServiceListener
.ApplicationServiceListener
is a listener interface that may be implemented by an application developer.An
ApplicationServiceListener
object is registered with the Framework using theApplicationContext.addServiceListener
method.ApplicationServiceListener
objects are called with anApplicationServiceEvent
object when a service is registered, modified, or is in the process of unregistering.ApplicationServiceEvent
object delivery toApplicationServiceListener
objects is filtered by the filter specified when the listener was registered. If the Java Runtime Environment supports permissions, then additional filtering is done.ApplicationServiceEvent
objects are only delivered to the listener if the application which defines the listener object's class has the appropriateServicePermission
to 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.ApplicationServiceEvent
object delivery toApplicationServiceListener
objects 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 void
serviceChanged(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
- TheApplicationServiceEvent
object.
-
-