Anyway to pass a constructor parameter to a JAXB Adapter?
问题 I'm using Spring 3 IOC and JAXB/JAX-WS in a WebService that I wrote. I am having a slight issue right now with data that must be rounded prior to returning to the consumer as they are not capable of handling the complete precision of the values. To minimize the impact on the WS design and calculations, I chose to use an Jaxb XmlAdapter to round the values upon marshalling of my response. Everything works fine. My issue now is that I would like to make it flexible. Ie: in some cases, I need to