|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
MacroService
Macro
annotation.
The class must contains at lease one method annotated as Macro
or DefaultMacro
and conform the following rules:
RenderContext
Writer
add
in interface MacroService
classLoaders
- the class loadersMacroService.add(java.lang.ClassLoader[])
public void add(java.lang.Class<?> macroClass) throws java.lang.IllegalArgumentException
MacroService
Macro
annotation.
The class must contains at lease one method annotated as Macro
or DefaultMacro
and conform the following rules:
RenderContext
Writer
add
in interface MacroService
macroClass
- 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
MacroService
Macro
annotation.
The class must contains at lease one method annotated as Macro
or DefaultMacro
and conform the following rules:
RenderContext
Writer
add
in interface MacroService
macro
- the macro class
java.lang.IllegalArgumentException
- on occasionMacroService.add(java.lang.Object)
public java.lang.Object getInstance(java.lang.String name)
getInstance
in interface MacroService
MacroService.getInstance(java.lang.String)
public java.lang.reflect.Method getMethod(java.lang.String name, java.lang.String extension, int numberOfParameters)
getMethod
in interface MacroService
MacroService.getMethod(java.lang.String, java.lang.String, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |