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() |
public String lookup(String key)
EnvironmentConfiguration
.lookup
in class org.apache.commons.lang.text.StrLookup
key
- the key to lookupCopyright © 2001–2013 The Apache Software Foundation. All rights reserved.