public interface AllServiceListener extends ServiceListener
ServiceEvent listener that does not filter based upon
wiring. When a ServiceEvent is fired, it
is synchronously delivered to an AllServiceListener. The Runtime
may deliver ServiceEvent objects to an AllServiceListener out
of order and may concurrently call and/or reenter an
AllServiceListener.
An AllServiceListener object is registered with the Runtime using
the ModuleContext.addServiceListener method.
AllServiceListener objects are called with a ServiceEvent
object when a service is registered, modified, or is in the process of
unregistering.
ServiceEvent object delivery to AllServiceListener objects is
filtered by the filter specified when the listener was registered.
Unlike normal ServiceListener objects, AllServiceListener
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.
serviceChangedCopyright © 2015 JBoss by Red Hat. All rights reserved.