Package org.eclipse.microprofile.config
Interface ConfigValue
-
public interface ConfigValueThe ConfigValue holds additional information after the lookup of a configuration property and is itself immutable.Holds information about the configuration property name, configuration value, the
ConfigSourcename from where the configuration property was loaded and the ordinal of theConfigSource.This is used together with
Configto expose the configuration property lookup metadata.- Since:
- 2.0
- Author:
- Roberto Cortez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()The name of the property.StringgetRawValue()The value of the property lookup without any transformation (expanded , etc).StringgetSourceName()TheConfigSourcename that loaded the property lookup.intgetSourceOrdinal()TheConfigSourceordinal that loaded the property lookup.StringgetValue()The value of the property lookup with transformations (expanded, etc).
-
-
-
Method Detail
-
getName
String getName()
The name of the property.- Returns:
- the name of the property.
-
getValue
String getValue()
The value of the property lookup with transformations (expanded, etc).- Returns:
- the value of the property lookup or
nullif the property could not be found
-
getRawValue
String getRawValue()
The value of the property lookup without any transformation (expanded , etc).- Returns:
- the raw value of the property lookup or
nullif the property could not be found.
-
getSourceName
String getSourceName()
TheConfigSourcename that loaded the property lookup.- Returns:
- the ConfigSource name that loaded the property lookup or
nullif the property could not be found
-
getSourceOrdinal
int getSourceOrdinal()
TheConfigSourceordinal that loaded the property lookup.- Returns:
- the ConfigSource ordinal that loaded the property lookup or
0if the property could not be found
-
-