T
- type of the transfer objectD
- type of the domain objectpublic interface PostConverter<T,D>
This is called at the end of the interceptor pipeline, just after conversion of the individual fields.
The postconverter is only used when it is declared on the transfer object using PostConvert
.
The postconverter should be re-entrant. A singleton is used for all convert invocations.
Modifier and Type | Method and Description |
---|---|
default void |
postConvertToDomain(T source,
D target,
String... tags)
Do some work just after doing the actual conversion from transfer to domain object.
|
default void |
postConvertToTo(D source,
T target,
String... tags)
Do some work just after doing the actual conversion from domain to transfer object.
|
default void postConvertToTo(D source, T target, String... tags)
source
- source object. Should not be null.target
- target object. Should not be null.tags
- tags which indicate which fields can be converted based on MapOnly
annotations.
Tags are processed from left to right.default void postConvertToDomain(T source, D target, String... tags)
You can prevent the conversion of the actual object to happen by returning PreConverter.Result.SKIP
.
source
- source object. Should not be null.target
- target object. Should not be null.tags
- tags which indicate which fields can be converted based on MapOnly
annotations.
Tags are processed from left to right.Copyright © 2022. All rights reserved.