@ConsumerType public interface AllServiceListener extends ServiceListener
ServiceEventlistener that does not filter based upon package wiring.
AllServiceListeneris a listener interface that may be implemented by a bundle developer. When a
ServiceEventis fired, it is synchronously delivered to an
AllServiceListener. The Framework may deliver
ServiceEventobjects to an
AllServiceListenerout of order and may concurrently call and/or reenter an
AllServiceListener object is registered with the Framework using
AllServiceListener objects are called with a
object when a service is registered, modified, or is in the process of
ServiceEvent object delivery to
AllServiceListener objects is
filtered by the filter specified when the listener was registered. If the
Java Runtime Environment supports permissions, then additional filtering is
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 under which the service was registered.
objects receive all
ServiceEvent objects regardless of whether the
package source of the listening bundle is equal to the package source of the
bundle that registered the service. This means that the listener may not be
able to cast the service object to any of its corresponding service
interfaces if the service object is retrieved.