public class MapperServiceProcessor extends Object implements ModelElementProcessor<Mapper,Void>
ModelElementProcessor
which creates files in the META-INF/services
hierarchy for classes with custom implementation class or package name.
Service files will only be generated for mappers with the default component model
unless force using the mapstruct.alwaysGenerateServicesFile
option.ModelElementProcessor.ProcessorContext
Constructor and Description |
---|
MapperServiceProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Returns the priority value of this processor which must be between 1
(highest priority) and 10000 (lowest priority).
|
Void |
process(ModelElementProcessor.ProcessorContext context,
TypeElement mapperTypeElement,
Mapper mapper)
Processes the given source element, representing a Java bean mapper in
one form or another.
|
public Void process(ModelElementProcessor.ProcessorContext context, TypeElement mapperTypeElement, Mapper mapper)
ModelElementProcessor
process
in interface ModelElementProcessor<Mapper,Void>
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).null
except for the very last processor which
generates the resulting Java source file.public int getPriority()
ModelElementProcessor
Mapper
model must have a priority > 1000.getPriority
in interface ModelElementProcessor<Mapper,Void>
Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.