Package org.mapstruct.ap.internal.processor
Contains model processors which perform tasks such as retrieving mapping methods, creating a model representation and writing the model into Java source files. Processors are invoked in order as per their priority value.
-
Interface Summary Interface Description ModelElementProcessor<P,R> A processor which performs one task of the mapper generation, e.g. retrieving methods from the sourceTypeElement
, performing validity checks or generating the output source file.ModelElementProcessor.ProcessorContext Context object passed toModelElementProcessor.process(ProcessorContext, TypeElement, Object)
providing access to common infrastructure objects such asTypeUtils
etc. -
Class Summary Class Description AnnotationBasedComponentModelProcessor AnModelElementProcessor
which converts the givenMapper
object into an annotation based component model in case a matching model is selected as target component model for this mapper.CdiComponentProcessor AModelElementProcessor
which converts the givenMapper
object into an application-scoped CDI bean in case CDI is configured as the target component model for this mapper.DefaultModelElementProcessorContext Default implementation of the processor context.DefaultVersionInformation Provides information about the processor version and the processor context implementation version.JakartaCdiComponentProcessor AModelElementProcessor
which converts the givenMapper
object into an application-scoped Jakarta CDI bean in case Jakarta CDI is configured as the target component model for this mapper.JakartaComponentProcessor AModelElementProcessor
which converts the givenMapper
object into a Jakarta Inject style bean in case "jakarta" is configured as the target component model for this mapper.Jsr330ComponentProcessor AModelElementProcessor
which converts the givenMapper
object into a JSR 330 style bean in case "jsr330" is configured as the target component model for this mapper.MapperAnnotatedFormattingMessenger Handles redirection of errors/warnings so that they're shown on the mapper instead of hidden on a superclass.MapperCreationProcessor MapperRenderingProcessor AModelElementProcessor
which creates a Java source file representing the givenMapper
object, unless the given mapper type is erroneous.MapperServiceProcessor AModelElementProcessor
which creates files in theMETA-INF/services
hierarchy for classes with custom implementation class or package name.MethodRetrievalProcessor AModelElementProcessor
which retrieves a list ofSourceMethod
s representing all the mapping methods of the given bean mapper type as well as all referenced mapper methods declared by other mappers referenced by the current mapper.SpringComponentProcessor AModelElementProcessor
which converts the givenMapper
object into a Spring bean in case Spring is configured as the target component model for this mapper.