public class PropertiesBasedValueSource extends java.lang.Object implements FixedValueSource
FixedValueSource implementation that wraps a Properties instance,
and does a simple lookup of the entire expression string as the parameter for
Properties.getProperty(String), returning the result as the resolved
value.| Modifier and Type | Field and Description |
|---|---|
private java.util.Properties |
properties |
| Constructor and Description |
|---|
PropertiesBasedValueSource(java.util.Properties properties)
Wrap the specified
Properties object for use as a value source. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getValue(java.lang.String expression,
InterpolationState interpolationState) |
public PropertiesBasedValueSource(java.util.Properties properties)
Properties object for use as a value source.
Nulls are allowed.properties - The properties instance to wrap.public java.lang.Object getValue(java.lang.String expression,
InterpolationState interpolationState)
getValue in interface FixedValueSourceProperties.getProperty(String), using the
entire expression as the key to lookup. If the wrapped properties instance
is null, simply return null.