Package io.micronaut.context.env
Enum PropertySourcePropertyResolver.PropertyCatalog
- java.lang.Object
-
- java.lang.Enum<PropertySourcePropertyResolver.PropertyCatalog>
-
- io.micronaut.context.env.PropertySourcePropertyResolver.PropertyCatalog
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PropertySourcePropertyResolver.PropertyCatalog>
- Enclosing class:
- PropertySourcePropertyResolver
protected static enum PropertySourcePropertyResolver.PropertyCatalog extends java.lang.Enum<PropertySourcePropertyResolver.PropertyCatalog>
The property catalog to use.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GENERATED
The catalog that contains normalized keys and also generated keys.NORMALIZED
The catalog that contains normalized keys.RAW
The catalog that contains the raw keys.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertySourcePropertyResolver.PropertyCatalog
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PropertySourcePropertyResolver.PropertyCatalog[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RAW
public static final PropertySourcePropertyResolver.PropertyCatalog RAW
The catalog that contains the raw keys.
-
NORMALIZED
public static final PropertySourcePropertyResolver.PropertyCatalog NORMALIZED
The catalog that contains normalized keys. A key is normalized into lower case hyphen separated form. For example an environment variableFOO_BAR
would be normalized tofoo.bar
.
-
GENERATED
public static final PropertySourcePropertyResolver.PropertyCatalog GENERATED
The catalog that contains normalized keys and also generated keys. A synthetic key can be generated from an environment variable such asFOO_BAR_BAZ
which will produce the following keys:foo.bar.baz
,foo.bar-baz
, andfoo-bar.baz
.
-
-
Method Detail
-
values
public static PropertySourcePropertyResolver.PropertyCatalog[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PropertySourcePropertyResolver.PropertyCatalog c : PropertySourcePropertyResolver.PropertyCatalog.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertySourcePropertyResolver.PropertyCatalog valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-