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 and Description |
---|
EnvironmentLookup() |
Modifier and Type | Method and Description |
---|---|
String |
lookup(String key)
Performs a lookup for the specified variable.
|
public String lookup(String key)
EnvironmentConfiguration
.lookup
in class org.apache.commons.lang.text.StrLookup
key
- the key to lookupCopyright © 2001–2017. All rights reserved.