add to AbstractConverter method map to allow use another converters f…#413
add to AbstractConverter method map to allow use another converters f…#413Merdoc97 wants to merge 3 commits into
Conversation
|
Thanks for the pull request. This pull request looks good to me. Can you use 2-space-indent instead of 4-space-indent to align with our current coding style? Thanks. |
changed. |
|
Hi recently I created pr for new feature that I think will be useful (I hope because I use it). But after solve discussion but I didn't see any respond, maybe now it will be useful ?Thats why I think this small feature will be useful ? |
|
It's a good idea to have a method Any idea if we can remove the local variable? Thanks! |
|
thanks I'm do link static. |
|
Hi @Merdoc97 , Sorry for the lately reply :( I still think it's not a good idea to introduce mappingEngine as a local variable of AbstractConverter. What do you think? |
In many use cases when use modelMapper in converter need access to MappingEngineImpl for re use already present converters.
But it not comfortable to use in converters this structure
mappingEngine.map(source, Types.deProxy(source.getClass()), null, TypeToken.<Destination>of(destinationType), null)I think it will be useful feature when you can to reuse registered converters in any converter just using
map(Object source, Class<Destination> destinationType)