Class ServiceListeners


  • public class ServiceListeners
    extends Object
    ServiceListeners provides a simplified API for creating appropriate ServiceListener instances to respond to changes in either Configuration or Schema. This class is intended to reduce the boiler plate code required to enable a service to respond to configuration changes. For an example of usage, the following indicates an example of listening for changes to the global configuration changes in iPlanetAMNamingService. ServiceListeners builder = ... Action action = ... // Implementation to respond when config/service changes. builder.config("iPlanetAMNamingService").global(action).listen(); Note: The listener triggering order should be considered non-deterministic. Do not depend on the order of listener triggering.