Class CdiComponentProcessor
java.lang.Object
org.mapstruct.ap.internal.processor.AnnotationBasedComponentModelProcessor
org.mapstruct.ap.internal.processor.CdiComponentProcessor
- All Implemented Interfaces:
ModelElementProcessor<Mapper,Mapper>
A
ModelElementProcessor which converts the given Mapper
object into an application-scoped CDI bean in case CDI is configured as the
target component model for this mapper.- Author:
- Gunnar Morling
-
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 booleanprotected Stringprotected List<Annotation> protected List<Annotation> getTypeAnnotations(Mapper mapper) protected booleanMethods inherited from class org.mapstruct.ap.internal.processor.AnnotationBasedComponentModelProcessor
adjustDecorator, getDecoratorAnnotations, getDelegatorReferenceAnnotations, getPriority, getTypeFactory, process, replacementMapperReference
-
Constructor Details
-
CdiComponentProcessor
public CdiComponentProcessor()
-
-
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
-
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
-
additionalPublicEmptyConstructor
protected boolean additionalPublicEmptyConstructor()- Overrides:
additionalPublicEmptyConstructorin classAnnotationBasedComponentModelProcessor
-