[SWS-548] Expose suppressNamespace and suppressXSIType as properties to CastorMarshaller Created: 07/Aug/09  Updated: 04/May/12  Resolved: 16/Aug/09

Status: Closed
Project: Spring Web Services
Component/s: OXM
Affects Version/s: 1.5.7
Fix Version/s: 1.5.8

Type: Improvement Priority: Minor
Reporter: Arnaud Jeansen Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 16m
Original Estimate: Not Specified


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.

Comment by Arjen Poutsma [ 16/Aug/09 ]

Done, both in SWS and SPR, the new home of OXM.

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Sun Oct 20 18:53:32 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.