public class MapperRenderingProcessor extends Object implements ModelElementProcessor<Mapper,Mapper>A
ModelElementProcessorwhich creates a Java source file representing the given
Mapperobject, unless the given mapper type is erroneous.
- Gunnar Morling
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
getPriority()Returns the priority value of this processor which must be between 1 (highest priority) and 10000 (lowest priority).
process(ModelElementProcessor.ProcessorContext context, TypeElement mapperTypeElement, Mapper mapper)Processes the given source element, representing a Java bean mapper in one form or another.
public Mapper process(ModelElementProcessor.ProcessorContext context, TypeElement mapperTypeElement, Mapper mapper)Description copied from interface:
ModelElementProcessorProcesses the given source element, representing a Java bean mapper in one form or another.
- Specified by:
context- Context providing common infrastructure objects.
mapperTypeElement- The original type element from which the given mapper object is derived.
mapper- The current representation of the bean mapper. Never
null(the very first processor receives the original type element).
- The resulting representation of the bean mapper; may be the same
as the source representation, e.g. if a given implementation just
performs some sort of validity check. Implementations must never
nullexcept for the very last processor which generates the resulting Java source file.
public int getPriority()Description copied from interface:
ModelElementProcessorReturns the priority value of this processor which must be between 1 (highest priority) and 10000 (lowest priority). Processors are invoked in order from highest to lowest priority, starting with the mapping method retrieval processor (priority 1) and finishing with the code generation processor (priority 10000). Processors working on the built
Mappermodel must have a priority > 1000.