Details
-
Type: Improvement
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
JDK version and platform:1.5
Description
I need use a SingleValueConverter in order to make use of attribute mapping. The problem is that unlike the Converter interface, there's no way to get at the UnmarshallingContext in the fromString method. For example, via a Converter impl, I could call something like context.getRequiredType() in order to figure out how to unmarshal a string. I can't do this with a SingleValueConverter.
Hi Stephan,
please use a normal Converter implementation. The SingleValueConverter is meant for simple types with a single string representation - nothing more.