@Experimental(value="Extension to the original ConfigSource to allow retrieval of additional metadata on config lookup") public class ConfigValue extends Object
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 |
getName() |
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()
public String getValue()
public String getConfigSourceName()
public int getConfigSourceOrdinal()
public int getLineNumber()
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.