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
AModelElementProcessorwhich converts the givenMapperobject 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 StringgetComponentModelIdentifier()protected List<Annotation>getDecoratorAnnotations()protected List<Annotation>getDelegatorReferenceAnnotations(Mapper mapper)protected List<Annotation>getMapperReferenceAnnotations()protected List<Annotation>getTypeAnnotations(Mapper mapper)protected booleanrequiresGenerationOfDecoratorClass()-
Methods inherited from class org.mapstruct.ap.internal.processor.AnnotationBasedComponentModelProcessor
additionalPublicEmptyConstructor, adjustDecorator, getPriority, getTypeFactory, process, replacementMapperReference
-
-
-
-
Method Detail
-
getComponentModelIdentifier
protected String getComponentModelIdentifier()
- Specified by:
getComponentModelIdentifierin classAnnotationBasedComponentModelProcessor- Returns:
- the component model identifier
-
getTypeAnnotations
protected List<Annotation> getTypeAnnotations(Mapper mapper)
- Specified by:
getTypeAnnotationsin classAnnotationBasedComponentModelProcessor- Parameters:
mapper- the mapper- Returns:
- the annotation(s) to be added at the mapper type implementation
-
getDecoratorAnnotations
protected List<Annotation> getDecoratorAnnotations()
- Overrides:
getDecoratorAnnotationsin classAnnotationBasedComponentModelProcessor- Returns:
- the annotation(s) to be added at the decorator of the mapper
-
getDelegatorReferenceAnnotations
protected List<Annotation> getDelegatorReferenceAnnotations(Mapper mapper)
- Overrides:
getDelegatorReferenceAnnotationsin classAnnotationBasedComponentModelProcessor
-
getMapperReferenceAnnotations
protected List<Annotation> getMapperReferenceAnnotations()
- Specified by:
getMapperReferenceAnnotationsin classAnnotationBasedComponentModelProcessor- Returns:
- the annotation of the field for the mapper reference
-
requiresGenerationOfDecoratorClass
protected boolean requiresGenerationOfDecoratorClass()
- Specified by:
requiresGenerationOfDecoratorClassin classAnnotationBasedComponentModelProcessor- Returns:
- if a decorator (sub-)class needs to be generated or not
-
-