public interface ReferenceInsertionEventHandler extends EventHandler(Code)
Reference 'Stream insertion' event handler. Called with object
that will be inserted into stream via value.toString().
Please return an Object that will toString() nicely :)
author: Will Glass-Husain author: Geir Magnusson Jr. version: $Id: ReferenceInsertionEventHandler.java 470256 2006-11-02 07:20:36Z wglass $
referenceInsert(String reference, Object value) A call-back which is executed during Velocity merge before a reference
value is inserted into the output stream.
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: reference - Reference from template about to be inserted. Parameters: value - Value about to be inserted (after its toString()method is called). Object on which toString() should be called foroutput.