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 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 true if the proposed change is acceptable, or false if 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.