Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-10421

XStreamMarshaller - no way to set a MapperWrapper on XStream

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.2.2
    • Fix Version/s: 3.2.4, 4.0 M3
    • Component/s: OXM
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      We need a HibernateMapper for XStream to support lazy/proxy entities.
      Before Spring 3.2.2 we have subclassed XStreamMarshaller and overwritten getXStream to provide an appropriate instance of XStream.
      Since 3.2.2 XStreamMarshaller.getXStream is declared as final. The only way to set a MapperWrapper is to force access on the attribute 'xstream' via reflection.

      In my opinion XStreamMarshaller should provide an API method either to set MapperWrappers or to create a XStream instance.

      kind regards
      robert

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                rthaler Robert Thaler
                Last updater:
                Spring Issuemaster
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  26 weeks ago