|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MacroService
The macro service. Stores and holds predefined macros.
Method Summary | |
---|---|
void |
add(java.lang.Class<?> macroClass)
Adds the macro specified by the class. |
void |
add(java.lang.ClassLoader... classLoaders)
Scans the specified class loaders for macro service definitions. |
void |
add(java.lang.Object macro)
Adds the specified macro class. |
java.lang.Object |
getInstance(java.lang.String name)
|
java.lang.reflect.Method |
getMethod(java.lang.String name,
java.lang.String extension,
int numberOfParameters)
|
Method Detail |
---|
void add(java.lang.ClassLoader... classLoaders)
Macro
annotation.
The class must contains at lease one method annotated as Macro
or DefaultMacro
and conform the following rules:
RenderContext
Writer
classLoaders
- the class loaders
java.lang.IllegalArgumentException
- if a class could not be instantiatedvoid add(java.lang.Class<?> macroClass) throws java.lang.IllegalArgumentException
Macro
annotation.
The class must contains at lease one method annotated as Macro
or DefaultMacro
and conform the following rules:
RenderContext
Writer
macroClass
- the macro class
java.lang.IllegalArgumentException
- if the instance could not be createdvoid add(java.lang.Object macro) throws java.lang.IllegalArgumentException
Macro
annotation.
The class must contains at lease one method annotated as Macro
or DefaultMacro
and conform the following rules:
RenderContext
Writer
macro
- the macro class
java.lang.IllegalArgumentException
- on occasionjava.lang.Object getInstance(java.lang.String name)
java.lang.reflect.Method getMethod(java.lang.String name, java.lang.String extension, int numberOfParameters)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |