
public final class LifecycleMethodResolver extends Object
LifecycleCallbackMethodReferences| Modifier and Type | Method and Description |
|---|---|
static List<LifecycleCallbackMethodReference> |
afterMappingMethods(Method method,
SelectionParameters selectionParameters,
MappingBuilderContext ctx,
Set<String> existingVariableNames) |
static List<LifecycleCallbackMethodReference> |
afterMappingMethods(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx,
Set<String> existingVariableNames) |
static List<LifecycleCallbackMethodReference> |
beforeMappingMethods(Method method,
SelectionParameters selectionParameters,
MappingBuilderContext ctx,
Set<String> existingVariableNames) |
static List<LifecycleCallbackMethodReference> |
beforeMappingMethods(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx,
Set<String> existingVariableNames) |
public static List<LifecycleCallbackMethodReference> beforeMappingMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames)
method - the method to obtain the beforeMapping methods foralternativeTarget - alternative to Method.getResultType() e.g. when target is abstractselectionParameters - method selectionParametersctx - the builder contextexistingVariableNames - the existing variable names in the mapping method@BeforeMapping methods for the given methodpublic static List<LifecycleCallbackMethodReference> afterMappingMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames)
method - the method to obtain the afterMapping methods foralternativeTarget - alternative to Method.getResultType() e.g. when target is abstractselectionParameters - method selectionParametersctx - the builder contextexistingVariableNames - list of already used variable names@AfterMapping methods for the given methodpublic static List<LifecycleCallbackMethodReference> beforeMappingMethods(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames)
method - the method to obtain the beforeMapping methods forselectionParameters - method selectionParametersctx - the builder contextexistingVariableNames - the existing variable names in the mapping method@BeforeMapping methods for the given methodpublic static List<LifecycleCallbackMethodReference> afterMappingMethods(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames)
method - the method to obtain the afterMapping methods forselectionParameters - method selectionParametersctx - the builder contextexistingVariableNames - list of already used variable names@AfterMapping methods for the given methodCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.