Package com.helger.config.source
Enum Class EConfigSourceType
- All Implemented Interfaces:
com.helger.base.id.IHasID<String>,Serializable,Comparable<EConfigSourceType>,Constable
public enum EConfigSourceType
extends Enum<EConfigSourceType>
implements com.helger.base.id.IHasID<String>
Defines the type of configuration sources and the respective default
priority.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA configuration value from any other source inside the application.A configuration value from an environment variable.A configuration value from a file.A configuration values from a system property. -
Method Summary
Modifier and TypeMethodDescriptionintstatic EConfigSourceTypegetFromIDOrNull(String sID) getID()static EConfigSourceTypeReturns the enum constant of this class with the specified name.static EConfigSourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SYSTEM_PROPERTY
A configuration values from a system property. -
ENVIRONMENT_VARIABLE
A configuration value from an environment variable. -
RESOURCE
A configuration value from a file. -
APPLICATION
A configuration value from any other source inside the application.
-
-
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
-
getID
- Specified by:
getIDin interfacecom.helger.base.id.IHasID<String>
-
getDefaultPriority
@Nonnegative public int getDefaultPriority()- Returns:
- The default priority for a configuration source of this type. Always > 0.
-
getFromIDOrNull
-