Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Release 1.5
-
Component/s: None
-
Labels:None
Description
Right now the EnumTypeConverter use is hardcoded within the DefaultTypeConverterFactory. It is possible to substitute a different one via subclassing the DefaultTypeConverterFactory but it's not as easy as it should be.
We should probably just store the java.lang.Enum -> EnumTypeConverter mapping in the map of converters and then look it up when we have an enum. That way if someone registered a different converter for java.lang.Enum we'd automatically use that one instead.
DefaultTypeConverterFactory now supports custom Enumeration type converters.