XStream
  1. XStream
  2. XSTR-367

SingleValueConverter should pass UnmarshallingContext to fromString method

    Details

    • Type: Improvement Improvement
    • Status: Closed 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.

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Stephan Morais
        • Votes:
          1 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: