Class AbstractDelegatingValueSource
java.lang.Object
org.codehaus.plexus.interpolation.AbstractDelegatingValueSource
- All Implemented Interfaces:
ValueSource
- Direct Known Subclasses:
PrefixedObjectValueSource
,PrefixedPropertiesValueSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the feedback accumulated by a prior interpolation run.protected ValueSource
Return the feedback about resolution failures for a particular expression.Returns a value resolved from an expression.
-
Constructor Details
-
AbstractDelegatingValueSource
-
-
Method Details
-
getDelegate
-
getValue
Description copied from interface:ValueSource
Returns a value resolved from an expression. The return value is recursively resolved viaBasicInterpolator.interpolate(String)
, i.e. might contain expressions as well.- Specified by:
getValue
in interfaceValueSource
- Parameters:
expression
- The string expression.delimiterStart
- A valid start delimiter of the expression to be used with the callingInterpolator
(by default${
).delimiterEnd
- A valid end delimiter of the expression to be used with the callingInterpolator
(by default}
).- Returns:
- the value related to the expression, or
null
if not found. This value might contain other expressions separated byexpressionStartDelimiter
andexpressionEndDelimiter
-
getValue
- Specified by:
getValue
in interfaceValueSource
- Parameters:
expression
- The string expression.- Returns:
- the value related to the expression, or
null
if not found. - See Also:
-
clearFeedback
public void clearFeedback()Description copied from interface:ValueSource
Clear the feedback accumulated by a prior interpolation run.- Specified by:
clearFeedback
in interfaceValueSource
-
getFeedback
Description copied from interface:ValueSource
Return the feedback about resolution failures for a particular expression.- Specified by:
getFeedback
in interfaceValueSource
- Returns:
- a combination of String and Throwable instances, where strings related to throwables are listed first.
-