public interface EnvironmentParser
ConfigSource.
The methods are called in order:
| Modifier and Type | Method and Description |
|---|---|
Stream<Pair<String,String>> |
filter(Pair<String,String> entry)
Provides an opportunity to remove environment variables from parsing by the remainder of the pipeline.
|
String |
map(String segment)
Transforms a segment.
|
List<String> |
tokenize(String name)
Splits the name of an environment variable into per-object segments.
|
Stream<Pair<String,String>> filter(Pair<String,String> entry) throws Exception
entry - an environment variable, encoded with the name on the left and the value on the rightException - anyPair.mapLeft(ratpack.func.Function)List<String> tokenize(String name) throws Exception
SERVER__URL to mean an object "SERVER" and a field "URL", you would return a two element list ["SERVER", "URL"].name - the name of the environment variableException - anyString map(String segment) throws Exception
segment - a segment of the object pathException - anyCaseFormat