|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransformerService
The transformer service stores and hold predefined transformers.
Method Summary | |
---|---|
void |
add(java.lang.Class<?> transformerClass)
Adds the transformer specified by the class. |
void |
add(java.lang.ClassLoader... classLoaders)
Scans the specified class loaders for transformer service definitions. |
void |
add(java.lang.Object transformer)
Adds the specified transformer 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)
Transformer
annotation.
The class must contains at lease one method annotated as Transformer
or DefaultTransformer
and conform the following rules:
RenderContext
classLoaders
- the class loaders
java.lang.IllegalArgumentException
- if a class could not be instantiatedvoid add(java.lang.Class<?> transformerClass) throws java.lang.IllegalArgumentException
Transformer
annotation.
The class must contains at lease one method annotated as Transformer
or DefaultTransformer
and conform the following rules:
RenderContext
transformerClass
- the transformer class
java.lang.IllegalArgumentException
- if the instance could not be createdvoid add(java.lang.Object transformer) throws java.lang.IllegalArgumentException
Transformer
annotation.
The class must contains at lease one method annotated as Transformer
or DefaultTransformer
and conform the following rules:
RenderContext
transformer
- the transformer 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 |