Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
10.11.3
-
None
-
Unknown
-
Description
We have the need to convert the same way several types sometimes. Currently it's been worked around two ways:
- try to associated a converter with various "final" types (Hashtable, HashMap, LinkedHashMap) but it can quickly look a bit ridiculous
- hardcode a crappy if like we do for enum support
The idea would be to have 3 steps instead of the current 2:
- check if there is a Converter component register for a specific Type
- if none is found ask all UntypedConverter if they want to take care of the conversion (that's where we could move enum and Map support for example and add other things like Type)
- fallback on beanutils