public class ObjectFactoryMethodResolver extends Object
Modifier and Type | Method and Description |
---|---|
static MethodReference |
getBuilderFactoryMethod(Method method,
BuilderType builder) |
static MethodReference |
getFactoryMethod(Method method,
SelectionParameters selectionParameters,
MappingBuilderContext ctx)
returns a no arg factory method
|
static MethodReference |
getFactoryMethod(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx)
returns a no arg factory method
|
public static MethodReference getFactoryMethod(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx)
method
- target mapping methodselectionParameters
- parameters used in the selection processctx
- public static MethodReference getFactoryMethod(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx)
method
- target mapping methodalternativeTarget
- alternative to Method.getResultType()
e.g. when target is abstractselectionParameters
- parameters used in the selection processctx
- public static MethodReference getBuilderFactoryMethod(Method method, BuilderType builder)
Copyright © 2012-2019 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.