|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.config.resolve.ConfigurationPropertiesResolveContext
@ThreadSafe public final class ConfigurationPropertiesResolveContext
Simple interface on ConfigurationProperties
.
Constructor Summary | |
---|---|
ConfigurationPropertiesResolveContext(PropertyDescriptorRegistry registry, ConfigurationProperties config) Default constructor. |
Method Summary | |
---|---|
String |
get(String key) Returns the value for the given key. |
ConfigurationKey<?> |
getKey() Returns the unique identifier of the wrapped properties configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationPropertiesResolveContext(PropertyDescriptorRegistry registry, ConfigurationProperties config)
registry
- the registry to resolve property descriptors.
config
- the configuration to adapt.
Method Detail |
---|
public ConfigurationKey<?> getKey()
getKey
in interface
ResolveContext
ResolveContext.getKey()
public String get(String key) throws IllegalArgumentException, UnknownPropertyException, PropertyValidationException
get
in interface
ResolveContext
key
- the key to the requested value.
null
if there is no value for that key (but the key is known).
IllegalArgumentException
- if
key
is blank.
UnknownPropertyException
- if
key
is not known.
PropertyValidationException
- if the property is invalid according to its constraints.
ResolveContext.get(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |