Interface ConfigurationAddListener<T extends Configuration>

    • Method Detail

      • isConfigurationAddAcceptable

        boolean isConfigurationAddAcceptable​(T configuration,
                                             List<LocalizableMessage> unacceptableReasons)
        Indicates whether the proposed addition of a new configuration is acceptable to this add listener.
        Parameters:
        configuration - The configuration that will be added.
        unacceptableReasons - A list that can be used to hold messages about why the provided configuration is not acceptable.
        Returns:
        Returns true if the proposed addition is acceptable, or false if it is not.
      • applyConfigurationAdd

        ConfigChangeResult applyConfigurationAdd​(T configuration)
        Adds a new configuration to this add listener.
        Parameters:
        configuration - The configuration that will be added.
        Returns:
        Returns information about the result of adding the configuration.