Enum Class ConfigLocationType

java.lang.Object
java.lang.Enum<ConfigLocationType>
io.github.arthurhoch.kissconfig.ConfigLocationType
All Implemented Interfaces:
Serializable, Comparable<ConfigLocationType>, Constable

public enum ConfigLocationType extends Enum<ConfigLocationType>
Identifies the kind of place KissConfig can read configuration from.
  • Enum Constant Details

    • CLASSPATH

      public static final ConfigLocationType CLASSPATH
      Application classpath resources such as application.properties.
    • CLASSPATH_LIBRARIES

      public static final ConfigLocationType CLASSPATH_LIBRARIES
      Library defaults from META-INF/kiss-config/defaults.properties.
    • JAR_DIRECTORY

      public static final ConfigLocationType JAR_DIRECTORY
      Directory containing the running application JAR when available.
    • WORKING_DIRECTORY

      public static final ConfigLocationType WORKING_DIRECTORY
      Process working directory.
    • EXPLICIT_PATH

      public static final ConfigLocationType EXPLICIT_PATH
      Explicit directory path.
    • EXPLICIT_FILE

      public static final ConfigLocationType EXPLICIT_FILE
      Explicit single file path.
    • ENV_FILE

      public static final ConfigLocationType ENV_FILE
      Explicit env file path or builder-configured env file placeholder.
    • SYSTEM_PROPERTIES

      public static final ConfigLocationType SYSTEM_PROPERTIES
      Java system properties from System.getProperties().
    • ENVIRONMENT_VARIABLES

      public static final ConfigLocationType ENVIRONMENT_VARIABLES
      Operating-system environment variables from System.getenv().
  • Method Details

    • values

      public static ConfigLocationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ConfigLocationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null