"Mujtaba,Shelly" wrote:
>
> >I believe if you add <bind-xml ... type="org"/> to the field mapping it
> should use that instead of the class name during marshalling.
>
> But Keith, we don't know until runtime if the concrete class would be a
> person or org.
Sorry Shelly, you're right. You might want to try looking at
implementing a custom ClassDescriptorResolver that could handle the
mapping of the generic names to the concrete class names.
The Unmarshaller will call the ClassDescriptorResolver#resolveByXMLName
name method with the "org" and "person" values, you can then pass back
the appropriate descriptor.
--Keith
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev