Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-548

Expose suppressNamespace and suppressXSIType as properties to CastorMarshaller

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.7
    • Fix Version/s: 1.5.8
    • Component/s: OXM
    • Labels:
      None

      Description

      The CastorMarshaller class supports customization of the underlying org.exolab.castor.Marshaller with the customizeMarshaller method.

      However, some properties are already directly exposed to spring's CastorMarshaller as settable fields. This lets users add properties in the spring configuration rather than subclass CastorMarshaller.

      I am asking for the addition of two fields to the standard properties of CastorMarshaller, so that this subclassing is not needed anymore.

      • suppressXSIType
      • suppressNamespaces

      This would mean adding two fields in CastorMarshaller, adding the two corresponding setters, and adding the following code at the beginning of the customizeMarshaller method:

      protected void customizeMarshaller(Marshaller marshaller)

      { marshaller.setSuppressNamespaces(this.suppressNamespaces); marshaller.setSuppressXSIType(this.suppressXSIType); [....] }

      Proper defaults can be given to the two fields so that today's behaviour is not affected by this change unless the fields are set by the spring configuration.

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              ajeans Arnaud Jeansen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 16m
                16m