Class PropertiesBasedValueSource
java.lang.Object
org.codehaus.plexus.interpolation.AbstractValueSource
org.codehaus.plexus.interpolation.PropertiesBasedValueSource
- All Implemented Interfaces:
ValueSource
ValueSource 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.- Author:
- jdcasey
-
Constructor Summary
ConstructorsConstructorDescriptionPropertiesBasedValueSource(Properties properties) Wrap the specifiedPropertiesobject for use as a value source. -
Method Summary
Methods inherited from class org.codehaus.plexus.interpolation.AbstractValueSource
addFeedback, addFeedback, clearFeedback, getFeedbackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.plexus.interpolation.ValueSource
getValue
-
Constructor Details
-
PropertiesBasedValueSource
Wrap the specifiedPropertiesobject for use as a value source. Nulls are allowed.- Parameters:
properties- The properties instance to wrap.
-
-
Method Details
-
getValue
- Parameters:
expression- The string expression.- 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. - See Also:
-