public interface ConvertInterceptor
The functions like around advice in AOP.
The interceptor should be re-entrant. A singleton may be used for all convert invocations.
The interceptors can for example be used to handle validation.
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Object source,
T target,
boolean isTargetTo,
ConvertSourceTarget next,
String... tags)
Interceptor for
JTransfo.convert(Object, Object, String...). |
<T> T convert(Object source, T target, boolean isTargetTo, ConvertSourceTarget next, String... tags)
JTransfo.convert(Object, Object, String...).T - type of object to convert tosource - source to convert fromtarget - object to convert toisTargetTo - is the target class the transfer object?next - next in the interceptor chain, handles the actual converttags - tags for the conversionCopyright © 2017. All rights reserved.