public class ServiceListeners extends Object
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.Modifier and Type | Class and 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 and Description |
---|
ServiceListeners(PrivilegedAction<SSOToken> action) |
Modifier and Type | Method and Description |
---|---|
ServiceListeners.ListenerBuilder |
config(String serviceName) |
ServiceListeners.ListenerBuilder |
schema(String serviceName) |
@Inject public ServiceListeners(PrivilegedAction<SSOToken> action)
public ServiceListeners.ListenerBuilder config(String serviceName)
public ServiceListeners.ListenerBuilder schema(String serviceName)
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.