Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercept final result #210

Open
naarl opened this issue Dec 1, 2022 · 0 comments
Open

Intercept final result #210

naarl opened this issue Dec 1, 2022 · 0 comments

Comments

@naarl
Copy link

naarl commented Dec 1, 2022

Hi !

It would be nice to have the ability to intercept the final result of a mapping in order to apply some post mapping logics.

For example :

@Maps(withCustoms = {MyInterceptor.class})
DTO asDTO(Entity in)

class MyInterceptor {
    DTO intercept(Entity in, DTO out) {
        // Do some post mapping treatment, as conditionnal field aggregation for example
        return out;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant