Daniel,
If you search the archives a bit you'll find out that you can set a FieldHandler
"globally" programmatically by implementing a FieldHandlerFactory and
specifying this on the ClassDescriptorResolverImpl's Introspector instance.
--Keith
Daniel Nilsson wrote:
Hi!
I have a problem with marshalling of double values. Ie if a have a
value, lets say 0.000001, the marshalled XML contains the Scientific
representation, ie 1E-5, not 0.000001 as I want.
Is there a way to globally handle this ? Ie set some kind of global
wrapper for the double-type? My wrapper could then handle the
serializing of the double-type-elements, instead of the default built-in
handler.
I have read the documentation about the FieldHandlers but if I
understand that part correct I have to specify if I want to use the
"my-double-FieldHandler" for each element I want to use it for in either
a mapping-file (which I don't use at the moment) or in the bindings-file
when generating my java-sources. But I can't seem to find a way to set a
handler globally for an entire class.
Best regards
Daniel Nilsson
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------