-
public interface ConfigSourceA ConfigSource is what is used to retrieve configuration values from some location.
-
-
Method Summary
Modifier and Type Method Description abstract Function1<String, Object>getterFor(KType type)Given a type, return a function which takes in a configuration property key (aka a key 'name') and returns the value of the property at the given name as the type referred to by type. abstract StringgetName()A name for this ConfigSource to give extra context in the event of errors StringgetDescription()-
-
Method Detail
-
getterFor
abstract Function1<String, Object> getterFor(KType type)
Given a type, return a function which takes in a configuration property key (aka a key 'name') and returns the value of the property at the given name as the type referred to by type.
The return getter should return the value corresponding to the given key, or throw ConfigException.UnsupportedType if the type isn't supported.
-
getName
abstract String getName()
A name for this ConfigSource to give extra context in the event of errors
-
getDescription
String getDescription()
-
-
-
-