Class Jsr330ComponentProcessor
java.lang.Object
org.mapstruct.ap.internal.processor.AnnotationBasedComponentModelProcessor
org.mapstruct.ap.internal.processor.Jsr330ComponentProcessor
- All Implemented Interfaces:
ModelElementProcessor<Mapper,Mapper>
A
ModelElementProcessor which converts the given Mapper
object into a JSR 330 style bean in case "jsr330" is configured as the
target component model for this mapper.- Author:
- Gunnar Morling, Andreas Gudian
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.processor.ModelElementProcessor
ModelElementProcessor.ProcessorContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected List<Annotation> getDecoratorAnnotations(Decorator decorator) protected List<Annotation> protected List<Annotation> protected List<Annotation> getTypeAnnotations(Mapper mapper) protected booleanMethods inherited from class org.mapstruct.ap.internal.processor.AnnotationBasedComponentModelProcessor
additionalPublicEmptyConstructor, adjustDecorator, getPriority, getTypeFactory, process, replacementMapperReference
-
Constructor Details
-
Jsr330ComponentProcessor
public Jsr330ComponentProcessor()
-
-
Method Details
-
getComponentModelIdentifier
- Specified by:
getComponentModelIdentifierin classAnnotationBasedComponentModelProcessor- Returns:
- the component model identifier
-
getTypeAnnotations
- Specified by:
getTypeAnnotationsin classAnnotationBasedComponentModelProcessor- Parameters:
mapper- the mapper- Returns:
- the annotation(s) to be added at the mapper type implementation
-
getDecoratorAnnotations
- Overrides:
getDecoratorAnnotationsin classAnnotationBasedComponentModelProcessor- Returns:
- the annotation(s) to be added at the decorator of the mapper
-
getDelegatorReferenceAnnotations
- Overrides:
getDelegatorReferenceAnnotationsin classAnnotationBasedComponentModelProcessor
-
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
-