public class EnvironmentLookup extends org.apache.commons.lang.text.StrLookup
A specialized lookup implementation that allows access to environment variables.
This implementation relies on EnvironmentConfiguration to resolve
environment variables. It can be used for referencing environment variables
in configuration files in an easy way, for instance:
java.home = ${env:JAVA_HOME}
EnvironmentLookup is one of the standard lookups that is
registered per default for each configuration.
| Constructor | Description |
|---|---|
EnvironmentLookup() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
lookup(java.lang.String key) |
Performs a lookup for the specified variable.
|
public EnvironmentLookup()
public java.lang.String lookup(java.lang.String key)
EnvironmentConfiguration.lookup in class org.apache.commons.lang.text.StrLookupkey - the key to lookup