Interface ConfigurationChangeListener<T extends Configuration>
-
- Type Parameters:
T- The type of configuration that this listener should be notified about.
public interface ConfigurationChangeListener<T extends Configuration>This interface defines the methods that a Directory Server configurable component should implement if it wishes to be able to receive notifications when a its associated configuration is changed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigChangeResultapplyConfigurationChange(T configuration)Applies the configuration changes to this change listener.booleanisConfigurationChangeAcceptable(T configuration, List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)Indicates whether the proposed change to the configuration is acceptable to this change listener.
-
-
-
Method Detail
-
isConfigurationChangeAcceptable
boolean isConfigurationChangeAcceptable(T configuration, List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable to this change listener.- Parameters:
configuration- The new configuration containing the changes.unacceptableReasons- A list that can be used to hold messages about why the provided configuration is not acceptable.- Returns:
- Returns
trueif the proposed change is acceptable, orfalseif it is not.
-
applyConfigurationChange
ConfigChangeResult applyConfigurationChange(T configuration)
Applies the configuration changes to this change listener.- Parameters:
configuration- The new configuration containing the changes.- Returns:
- Returns information about the result of changing the configuration.
-
-