Package com.iplanet.services.naming
Class ServiceListeners
- java.lang.Object
-
- com.iplanet.services.naming.ServiceListeners
-
public class ServiceListeners extends Object
ServiceListeners provides a simplified API for creating appropriateServiceListener
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ServiceListeners.Action
A generic listener which will respond to a configuration or schema change event.static class
ServiceListeners.ListenerBuilder
Builder responsible for providing fluent-like functions for building up Action instances which will respond to changes in Service configuration.
-
Constructor Summary
Constructors Constructor Description ServiceListeners(PrivilegedAction<SSOToken> action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceListeners.ListenerBuilder
config(String serviceName)
ServiceListeners.ListenerBuilder
schema(String serviceName)
-
-
-
Constructor Detail
-
ServiceListeners
@Inject public ServiceListeners(PrivilegedAction<SSOToken> action)
-
-
Method Detail
-
config
public ServiceListeners.ListenerBuilder config(String serviceName)
-
schema
public ServiceListeners.ListenerBuilder schema(String serviceName)
-
-