Stripes

Allow users to register a custom EnumTypeConverter

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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.

Activity

Hide
Ben Gunter added a comment - 22/May/08 2:14 PM

DefaultTypeConverterFactory now supports custom Enumeration type converters.

Show
Ben Gunter added a comment - 22/May/08 2:14 PM DefaultTypeConverterFactory now supports custom Enumeration type converters.

People

Vote (0)
Watch (0)

Dates

  • Created:
    20/May/08 4:45 PM
    Updated:
    04/Jan/11 3:10 PM
    Resolved:
    22/May/08 2:14 PM