|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.peaseplate.internal.service.DefaultMacroService
public class DefaultMacroService
The default implementation of the MacroService
| Constructor Summary | |
|---|---|
DefaultMacroService()
|
|
| 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMacroService()
| Method Detail |
|---|
public void add(java.lang.ClassLoader... classLoaders)
MacroServiceMacro annotation.
The class must contains at lease one method annotated as Macro
or DefaultMacro and conform the following rules:
RenderContextWriter
add in interface MacroServiceclassLoaders - the class loadersMacroService.add(java.lang.ClassLoader[])
public void add(java.lang.Class<?> macroClass)
throws java.lang.IllegalArgumentException
MacroServiceMacro annotation.
The class must contains at lease one method annotated as Macro
or DefaultMacro and conform the following rules:
RenderContextWriter
add in interface MacroServicemacroClass - the macro class
java.lang.IllegalArgumentException - if the instance could not be createdMacroService.add(java.lang.Class)
public void add(java.lang.Object macro)
throws java.lang.IllegalArgumentException
MacroServiceMacro annotation.
The class must contains at lease one method annotated as Macro
or DefaultMacro and conform the following rules:
RenderContextWriter
add in interface MacroServicemacro - the macro class
java.lang.IllegalArgumentException - on occasionMacroService.add(java.lang.Object)public java.lang.Object getInstance(java.lang.String name)
getInstance in interface MacroServiceMacroService.getInstance(java.lang.String)
public java.lang.reflect.Method getMethod(java.lang.String name,
java.lang.String extension,
int numberOfParameters)
getMethod in interface MacroServiceMacroService.getMethod(java.lang.String, java.lang.String, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||