Class SubstitutionContext


  • public class SubstitutionContext
    extends Object
    A SubstitutionContext holds both runtime and config time values for the substitution process.
    • Constructor Detail

      • SubstitutionContext

        public SubstitutionContext​(boolean escaping)
        Creates a SubstitutionContext with default (no-op) notifiers and escaping support as dictated by escaping.
        Parameters:
        escaping - Enable/disable escaping support
      • SubstitutionContext

        public SubstitutionContext​(Consumer<String> onUnresolved,
                                   Consumer<List<String>> onCycle,
                                   boolean escaping)
        Creates a SubstitutionContext with given unresolved and cycle functions.
        Parameters:
        onUnresolved - Called when unresolved variables are detected
        onCycle - Called when cycles are detected
        escaping - Enable/disable escaping support