@Experimental(value="Extension to the original ConfigSource to allow retrieval of additional metadata on config lookup") public class ConfigValue extends Object implements org.eclipse.microprofile.config.ConfigValue
Right now, it is able to hold information like the configuration name, value, the Config Source from where the configuration was loaded, the ordinal of the Config Source and a line number from where the configuration was read if exists.
This is used together with ConfigValueConfigSource and ConfigSourceInterceptor to expose the
Configuration lookup metadata.
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigValue.ConfigValueBuilder |
| Modifier and Type | Method and Description |
|---|---|
static ConfigValue.ConfigValueBuilder |
builder() |
boolean |
equals(Object o) |
String |
getConfigSourceName() |
int |
getConfigSourceOrdinal() |
int |
getLineNumber() |
String |
getLocation() |
String |
getName() |
String |
getRawValue() |
String |
getSourceName() |
int |
getSourceOrdinal() |
String |
getValue() |
int |
hashCode() |
ConfigValue |
withConfigSourceName(String configSourceName) |
ConfigValue |
withConfigSourceOrdinal(int configSourceOrdinal) |
ConfigValue |
withLineNumber(int lineNumber) |
ConfigValue |
withName(String name) |
ConfigValue |
withValue(String value) |
public String getName()
getName in interface org.eclipse.microprofile.config.ConfigValuepublic String getValue()
getValue in interface org.eclipse.microprofile.config.ConfigValuepublic String getRawValue()
getRawValue in interface org.eclipse.microprofile.config.ConfigValuepublic String getSourceName()
getSourceName in interface org.eclipse.microprofile.config.ConfigValuepublic int getSourceOrdinal()
getSourceOrdinal in interface org.eclipse.microprofile.config.ConfigValuepublic String getConfigSourceName()
public int getConfigSourceOrdinal()
public int getLineNumber()
public String getLocation()
public ConfigValue withName(String name)
public ConfigValue withValue(String value)
public ConfigValue withConfigSourceName(String configSourceName)
public ConfigValue withConfigSourceOrdinal(int configSourceOrdinal)
public ConfigValue withLineNumber(int lineNumber)
public static ConfigValue.ConfigValueBuilder builder()
Copyright © 2018–2020. All rights reserved.