public interface ServiceListener extends EventListener
ServiceEvent listener. ServiceListener is a listener
interface that may be implemented by a module developer. When a
ServiceEvent is fired, it is synchronously delivered to a
ServiceListener. The Runtime may deliver ServiceEvent
objects to a ServiceListener out of order and may concurrently call
and/or reenter a ServiceListener.
A ServiceListener object is registered with the Runtime using the
ModuleContext.addServiceListener method. ServiceListener
objects are called with a ServiceEvent object when a service is
registered, modified, or is in the process of unregistering.
ServiceEvent object delivery to ServiceListener objects is
filtered by the filter specified when the listener was registered.
ServiceEvent object delivery to ServiceListener objects is
filtered according to package sources as defined in
ServiceReference.isAssignableTo(Module, String).
ServiceEvent| Modifier and Type | Method and Description |
|---|---|
void |
serviceChanged(ServiceEvent event)
Receives notification that a service has had a lifecycle change.
|
void serviceChanged(ServiceEvent event)
event - The ServiceEvent object.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.