XStream
  1. XStream
  2. XSTR-160

Support for Unregistering Converters

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I have written a custom Converter which decides based on the document element's version how the document should be parsed. A certain version is parsed by registering a number of other custom converters and some aliases. However, It also needs to unregister converters or remove an alias in certain situations. As there is no api for this yet, and a number of fields in the DefaultConverterLookup and DefaultClassMapper classes are set to private, I basically need to copy those classes completetly, althoug I would only need to modify a few lines.

      It would be good if there was an unregisterConverter and unregisterAlias method in the XStream/DefaultConverterLookup/DefaultClassMapper class or at least the private fields were set to protected.

      1. patch.txt
        4 kB
        Guilherme Silveira

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Andreas Fänger
        • Votes:
          3 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: