Interface ReferenceInsertionEventHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object referenceInsert​(Context context, java.lang.String reference, java.lang.Object value)
      A call-back which is executed during Velocity merge before a reference value is inserted into the output stream.
    • Method Detail

      • referenceInsert

        java.lang.Object referenceInsert​(Context context,
                                         java.lang.String reference,
                                         java.lang.Object value)
        A call-back which is executed during Velocity merge before a reference value is inserted into the output stream. All registered ReferenceInsertionEventHandlers are called in sequence. If no ReferenceInsertionEventHandlers are are registered then reference value is inserted into the output stream as is.
        Parameters:
        context - current context
        reference - Reference from template about to be inserted.
        value - Value about to be inserted (after its toString() method is called).
        Returns:
        Object on which toString() should be called for output.