Class FeedbackingValueSource

  • All Implemented Interfaces:
    ValueSource

    public class FeedbackingValueSource
    extends AbstractValueSource
    Adds feedback on any getValue(String) call.

    One of the obvious usages is to add FeedbackingValueSource as last value source to Interpolator to add feedback messages indicating not resolved expressions.

    • Constructor Detail

      • FeedbackingValueSource

        public FeedbackingValueSource()
      • FeedbackingValueSource

        public FeedbackingValueSource​(java.lang.String messagePattern)
        Parameters:
        messagePattern - could contain ${expression} placeholder
    • Method Detail

      • getValue

        public java.lang.Object getValue​(java.lang.String expression)
        Parameters:
        expression - The string expression.
        Returns:
        the value related to the expression, or null if not found.
        See Also:
        ValueSource.getValue(String, String, String)