Class JakartaComponentProcessor
- java.lang.Object
-
- org.mapstruct.ap.internal.processor.AnnotationBasedComponentModelProcessor
-
- org.mapstruct.ap.internal.processor.JakartaComponentProcessor
-
- All Implemented Interfaces:
ModelElementProcessor<Mapper,Mapper>
public class JakartaComponentProcessor extends AnnotationBasedComponentModelProcessor
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.- Author:
- Filip Hrisafov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.processor.ModelElementProcessor
ModelElementProcessor.ProcessorContext
-
-
Constructor Summary
Constructors Constructor Description JakartaComponentProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getComponentModelIdentifier()
protected List<Annotation>
getDecoratorAnnotations()
protected List<Annotation>
getDelegatorReferenceAnnotations(Mapper mapper)
protected List<Annotation>
getMapperReferenceAnnotations()
protected List<Annotation>
getTypeAnnotations(Mapper mapper)
protected boolean
requiresGenerationOfDecoratorClass()
-
Methods inherited from class org.mapstruct.ap.internal.processor.AnnotationBasedComponentModelProcessor
additionalPublicEmptyConstructor, adjustDecorator, getPriority, getTypeFactory, process, replacementMapperReference
-
-
-
-
Method Detail
-
getComponentModelIdentifier
protected String getComponentModelIdentifier()
- Specified by:
getComponentModelIdentifier
in classAnnotationBasedComponentModelProcessor
- Returns:
- the component model identifier
-
getTypeAnnotations
protected List<Annotation> getTypeAnnotations(Mapper mapper)
- Specified by:
getTypeAnnotations
in classAnnotationBasedComponentModelProcessor
- Parameters:
mapper
- the mapper- Returns:
- the annotation(s) to be added at the mapper type implementation
-
getDecoratorAnnotations
protected List<Annotation> getDecoratorAnnotations()
- Overrides:
getDecoratorAnnotations
in classAnnotationBasedComponentModelProcessor
- Returns:
- the annotation(s) to be added at the decorator of the mapper
-
getDelegatorReferenceAnnotations
protected List<Annotation> getDelegatorReferenceAnnotations(Mapper mapper)
- Overrides:
getDelegatorReferenceAnnotations
in classAnnotationBasedComponentModelProcessor
-
getMapperReferenceAnnotations
protected List<Annotation> getMapperReferenceAnnotations()
- Specified by:
getMapperReferenceAnnotations
in classAnnotationBasedComponentModelProcessor
- Returns:
- the annotation of the field for the mapper reference
-
requiresGenerationOfDecoratorClass
protected boolean requiresGenerationOfDecoratorClass()
- Specified by:
requiresGenerationOfDecoratorClass
in classAnnotationBasedComponentModelProcessor
- Returns:
- if a decorator (sub-)class needs to be generated or not
-
-