|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ComponentRole public interface VelocityMacroFilter
Component called before and after velocity execution in velocity macro to modify the content to execute or parse. It can be used for example to reformat the velocity content to take care of indentation etc.
| Method Summary | |
|---|---|
String |
after(String content,
org.apache.velocity.VelocityContext velocityContext)
Called just before the result of the velocity script execution is parsed. |
String |
before(String content,
org.apache.velocity.VelocityContext velocityContext)
Called just before the velocity script is executed. |
| Method Detail |
|---|
String before(String content,
org.apache.velocity.VelocityContext velocityContext)
content - the velocity scriptvelocityContext - the velocity context. this method can inject here bindings usable in the script like
$somebinding.
String after(String content,
org.apache.velocity.VelocityContext velocityContext)
content - the result of the velocity script executionvelocityContext - the velocity context. This method usually clean the bindings injected in the velocity
context by before(String, VelocityContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||