public class EnvironmentVariableLookup
extends org.apache.commons.text.StrLookup<java.lang.Object>
StrLookup implementation using environment variables as lookup source.| Constructor | Description |
|---|---|
EnvironmentVariableLookup() |
Create a new instance with strict behavior.
|
EnvironmentVariableLookup(boolean strict) |
Create a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
lookup(java.lang.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 java.lang.String lookup(java.lang.String key)
lookup in class org.apache.commons.text.StrLookup<java.lang.Object>UndefinedEnvironmentVariableException - if the environment variable doesn't exist and strict behavior
is enabled.Copyright © 2018. All rights reserved.