Package io.github.arthurhoch.kissconfig
Enum Class ConfigLocationType
- All Implemented Interfaces:
Serializable,Comparable<ConfigLocationType>,Constable
Identifies the kind of place KissConfig can read configuration from.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplication classpath resources such as application.properties.Library defaults from META-INF/kiss-config/defaults.properties.Explicit env file path or builder-configured env file placeholder.Operating-system environment variables from System.getenv().Explicit single file path.Explicit directory path.Directory containing the running application JAR when available.Java system properties from System.getProperties().Process working directory. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigLocationTypeReturns the enum constant of this class with the specified name.static ConfigLocationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASSPATH
Application classpath resources such as application.properties. -
CLASSPATH_LIBRARIES
Library defaults from META-INF/kiss-config/defaults.properties. -
JAR_DIRECTORY
Directory containing the running application JAR when available. -
WORKING_DIRECTORY
Process working directory. -
EXPLICIT_PATH
Explicit directory path. -
EXPLICIT_FILE
Explicit single file path. -
ENV_FILE
Explicit env file path or builder-configured env file placeholder. -
SYSTEM_PROPERTIES
Java system properties from System.getProperties(). -
ENVIRONMENT_VARIABLES
Operating-system environment variables from System.getenv().
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-