Interface SettingsCore.SettingsAPI

  • Enclosing class:
    SettingsCore<T extends Enum<T> & SettingsCore.SettingsAPI>

    public static interface SettingsCore.SettingsAPI
    This interface defines the methods of enumerations declaring configuration settings that are used by the core settings implementation. The key() method must be implemented by the enumeration, but the val() method is provided with a default implementation. If your enumeration specifies default values, override val() with a method that returns these values.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String key()
      Get the key for this configuration setting, which is its system property name
      String val()
      Get the default value for this configuration setting.
      NOTE: Return 'null' if this setting has no default value.
    • Method Detail

      • key

        String key()
        Get the key for this configuration setting, which is its system property name
        Returns:
        configuration setting key
      • val

        String val()
        Get the default value for this configuration setting.
        NOTE: Return 'null' if this setting has no default value.
        Returns:
        configuration setting default value; 'null' if none exists