public class FromSystemProperties extends ResolverImp
System.getProperties()
. *
This resolver resolves values based on the associated system property; e.g. %env{my.sysprop}
will return the value of the
system propertymy.sysprop
. In the event that my.sysprop
is not defined, then the property name will be returned
(in this case the literal value 'my.sysprop').
log
Constructor and Description |
---|
FromSystemProperties() |
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}