Package com.sas.services.mgmt
Class ServiceNotificationBroadcaster
java.lang.Object
com.sas.services.mgmt.ServiceNotificationBroadcaster
- All Implemented Interfaces:
ServiceNotificationBroadcasterInterface,Serializable,Remote
public class ServiceNotificationBroadcaster
extends Object
implements ServiceNotificationBroadcasterInterface, Serializable
Service notification broadcaster. Observers interested in receiving
notifications about changes to a service may register themselves with this
notification broadcaster.
- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddServiceObserver(ServiceRemoteObserverInterface serviceObserver) Adds a service observer.final voidnotifyServiceObservers(ServiceEvent serviceEvent) Notify all registered service observers of the specified service event.final voidRemoves all service observers.final voidremoveServiceObserver(ServiceRemoteObserverInterface serviceObserver) Removes a service observer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ServiceNotificationBroadcaster
public ServiceNotificationBroadcaster()
-
-
Method Details
-
addServiceObserver
Adds a service observer.- Specified by:
addServiceObserverin interfaceServiceNotificationBroadcasterInterface- Parameters:
serviceObserver- An observer interested in receiving service notifications.
-
removeServiceObserver
Removes a service observer.- Specified by:
removeServiceObserverin interfaceServiceNotificationBroadcasterInterface- Parameters:
serviceObserver- An observer no longer interested in receiving service notifications.
-
removeAllServiceObservers
public final void removeAllServiceObservers()Removes all service observers.- Specified by:
removeAllServiceObserversin interfaceServiceNotificationBroadcasterInterface
-
notifyServiceObservers
Notify all registered service observers of the specified service event.- Specified by:
notifyServiceObserversin interfaceServiceNotificationBroadcasterInterface- Parameters:
serviceEvent- Service event to be broadcast to all registered service observers.
-