public class EnvironmentVariableLookup extends org.apache.commons.text.StrLookup<Object>
StrLookup implementation using environment variables as lookup source.| Constructor and Description |
|---|
EnvironmentVariableLookup()
Create a new instance with strict behavior.
|
EnvironmentVariableLookup(boolean strict)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
lookup(String key) |
public EnvironmentVariableLookup()
public EnvironmentVariableLookup(boolean strict)
strict - true if looking up undefined environment variables should throw a
UndefinedEnvironmentVariableException, false otherwise.UndefinedEnvironmentVariableException - if the environment variable doesn't exist and strict behavior
is enabled.public String lookup(String key)
lookup in class org.apache.commons.text.StrLookup<Object>UndefinedEnvironmentVariableException - if the environment variable doesn't exist and strict behavior
is enabled.Copyright © 2019. All rights reserved.