|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
P - the type of the macro parameters bean@ComponentRole public interface Macro<P>
Represents a Macro, ie a mechanism to generate Rendering Blocks, that we use as a way to either generate
dynamic content or simply as a way to reuse Blocks in content.
| Method Summary | |
|---|---|
List<Block> |
execute(P parameters,
String content,
MacroTransformationContext context)
Executes the macro. |
MacroDescriptor |
getDescriptor()
|
int |
getPriority()
The priority of execution relative to the other Macros. |
boolean |
supportsInlineMode()
|
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
int getPriority()
MacroDescriptor getDescriptor()
boolean supportsInlineMode()
== hello {{velocity}}world{{/velocity}} then the Velocity macro must
support the inline mode and not generate a paragraph.
List<Block> execute(P parameters,
String content,
MacroTransformationContext context)
throws MacroExecutionException
parameters - the macro parameters in the form of a bean defined by the Macro implementationcontent - the content of the macrocontext - the context of the macros transformation process
MacroExecutionException - error when executing the macro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||