public class FromEnvironment extends ResolverImp
System.getenv()
.
This resolver resolves values based on the associated environment variable. e.g. %env{HOSTNAME}
will return the value of
the environment variable HOSTNAME
. In the event that HOSTNAME
is not defined, then the variable will be returned
(in this case the literal value 'HOSTNAME').
log
Constructor and Description |
---|
FromEnvironment() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(java.lang.String value)
Can this resolver handle this type of value.
|
java.lang.String |
resolve(java.lang.String s)
Attempt to resolve a value externally.
|
asMap, resolve
public java.lang.String resolve(java.lang.String s)
Resolver
public boolean canHandle(java.lang.String value)
Resolver
value
- the value e.g. %env{MY_ENV_VAR}