[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


 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.



 Comments   
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 Fri Dec 15 06:36:35 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.