use of org.mapstruct.ap.internal.model.MappingBuilderContext in project mapstruct by mapstruct.
the class MapperCreationProcessor method process.
@Override
public Mapper process(ProcessorContext context, TypeElement mapperTypeElement, List<SourceMethod> sourceModel) {
this.elementUtils = context.getElementUtils();
this.typeUtils = context.getTypeUtils();
this.messager = context.getMessager();
this.options = context.getOptions();
this.versionInformation = context.getVersionInformation();
this.typeFactory = context.getTypeFactory();
MapperConfiguration mapperConfig = MapperConfiguration.getInstanceOn(mapperTypeElement);
List<MapperReference> mapperReferences = initReferencedMappers(mapperTypeElement, mapperConfig);
MappingBuilderContext ctx = new MappingBuilderContext(typeFactory, elementUtils, typeUtils, messager, options, new MappingResolverImpl(messager, elementUtils, typeUtils, typeFactory, new ArrayList<Method>(sourceModel), mapperReferences), mapperTypeElement, // Consider removing those methods directly into MappingBuilderContext.
Collections.unmodifiableList(sourceModel), mapperReferences);
this.mappingContext = ctx;
return getMapper(mapperTypeElement, mapperConfig, sourceModel);
}
Aggregations