Class ConfigurationSetting.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • defaultValue

        public ConfigurationSetting.Builder defaultValue​(java.lang.Object defaultValue)
        Specify the default value of this setting, if no explicit value is found in the Configuration.
        Parameters:
        defaultValue - The default value to use for the setting, if no explicit value is provided in the configuration
        Returns:
        self
      • global

        public ConfigurationSetting.Builder global​(boolean global)
        Specify whether this is a global setting or not
        Parameters:
        global - true if the setting is global, false otherwise
        Returns:
        self
      • override

        public ConfigurationSetting.Builder override​(boolean override)
        Specify whether this setting can be overridden at runtime.
        Parameters:
        override - true if this setting can be overridden, false otherwise
        Returns:
        self
      • secure

        public ConfigurationSetting.Builder secure​(boolean secure)
        Specify whether this setting contains sensitive data such as passwords.
        Parameters:
        secure - true if this setting is sensitive, false otherwise
        Returns:
        self
      • type

        public ConfigurationSetting.Builder type​(java.lang.Class<?> type)
        Specify the data type of the setting
        Parameters:
        type - The data type
        Returns:
        self