Class PropertiesBasedValueSource
- java.lang.Object
-
- org.codehaus.plexus.interpolation.fixed.PropertiesBasedValueSource
-
- All Implemented Interfaces:
FixedValueSource
public class PropertiesBasedValueSource extends java.lang.Object implements FixedValueSource
FixedValueSourceimplementation that wraps aPropertiesinstance, and does a simple lookup of the entire expression string as the parameter forProperties.getProperty(String), returning the result as the resolved value.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Propertiesproperties
-
Constructor Summary
Constructors Constructor Description PropertiesBasedValueSource(java.util.Properties properties)Wrap the specifiedPropertiesobject for use as a value source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetValue(java.lang.String expression, InterpolationState interpolationState)
-
-
-
Method Detail
-
getValue
public java.lang.Object getValue(java.lang.String expression, InterpolationState interpolationState)- Specified by:
getValuein interfaceFixedValueSource- Parameters:
expression- The expression.interpolationState-InterpolationState.- Returns:
- the result of
Properties.getProperty(String), using the entire expression as the key to lookup. If the wrapped properties instance is null, simply return null.
-
-