Hi,
I'm using castor 1.0.5 and I see something slightly suspicious. I have a few
special handlers, and after reading this posting
http://www.mail-archive.com/[email protected]/msg01443.html, However
the marshaller is totally ignoring my custom handlers.
classDescriptorResolver = new XMLClassDescriptorResolverImpl();
classDescriptorResolver.getIntrospector().addFieldHandlerFactory(new
CustomBooleanHandlerFactory());
classDescriptorResolver.getIntrospector().addFieldHandlerFactory(new
CustomDoubleHandlerFactory());
classDescriptorResolver.getIntrospector().addFieldHandlerFactory(new
CustomDateHandlerFactory());
Marshaller marshaller = new Marshaller(document);
marshaller.setValidation(false);
marshaller.setMapping(mapping);
marshaller.marshal(resultObject);
The _cdResolver is getting set correctly, but the marshaller just isn't using
it. Am I missing something obvious?
Thanks,
Vidya