Interface ServerManagedObjectChangeListener<T extends Configuration>

  • Type Parameters:
    T - The type of server managed object that this listener should be notified about.

    public interface ServerManagedObjectChangeListener<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 server managed object is changed.
    • Method Detail

      • isConfigurationChangeAcceptable

        boolean isConfigurationChangeAcceptable​(ServerManagedObject<? extends T> mo,
                                                List<LocalizableMessage> unacceptableReasons)
        Indicates whether the proposed change to the server managed object is acceptable to this change listener.
        Parameters:
        mo - The new server managed object containing the changes.
        unacceptableReasons - A list that can be used to hold messages about why the provided server managed object is not acceptable.
        Returns:
        Returns true if the proposed change is acceptable, or false if it is not.
      • applyConfigurationChange

        ConfigChangeResult applyConfigurationChange​(ServerManagedObject<? extends T> mo)
        Applies the server managed object changes to this change listener.
        Parameters:
        mo - The new server managed object containing the changes.
        Returns:
        Returns information about the result of changing the server managed object.