Skip to content

Support for lifecycle methods on type being build with builders #1454

Description

@filiphr

Currently we only support lifecycle methods on for a single type.

This issue is to expand that so the lifecycles are invoked for the type being build.

Example. We have Person with PersonBuilder.

The following lifecycle methods are / should be invoked:

  • @BeforeMapping with no parameters
  • @BeforeMapping with @TargetType Person
  • @BeforeMapping with @TargetType PersonBuilder
  • @BeforeMapping with @MappingTarget PersonBuilder
  • @AfterMapping with no parameters
  • @AfterMapping with @TargetType Person
  • @AfterMapping with @TargetType PersonBuilder
  • @AfterMapping with @MappingTarget Person
  • @AfterMapping with @MappingTarget PersonBuilder
  • @AfterMapping with @MappingTarget PersonBuilder and returning Person

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions