Menu

#230 Ignore Custom Converters

Dozer v5.3.1
open
nobody
5
2011-05-27
2011-05-27
Joan DAVID
No

The idea is to use CustomConverters only for complex mapping and use Dozer introspection abilities for simple mappings.
To do that, I had to modify MappingProcessor to allow the possibility to ignore customConverters for a single element and re-activate it for is fileds mapping. And in my customConverters, i make a first simple dozerMapping by re-call my dozerBeanMapper with ignorecustomConverters true, and then map complexe properties before return.
I just had a single boolean in MappingProcessor.map methods signature and check it before finding customConverters. Has in the MappingProcessor.mapField method I didn't pass the information, the field is than allow to use customConverters again.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB