Andy, Usually any method on a domain object (whether getter or setter et alias) will be called through a FieldHandler. In other words, upon loading a mapping file, Castor will internally create Classdescriptor and FieldDescriptor instances that hold all the information as encountered in the mapping file (names of XML elements, structure, etc.)
For an instance variable, the corresponding XMLFieldDescriptor(Impl) will have a FieldHandler instance associated which will be called during setting a value on this instance variable. I hope this helps you to get started. Werner PS Feel free to join me on the #castor channel on irc://irc.codehaus.org (or through the HTML domain available at http://irc.codehaus.org). PSS I have CCed the dev list, as I'd like to switch this to the dev list once this gets really technical. Your choice .... > -----Ursprüngliche Nachricht----- > Von: Andy Buckley [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 26. April 2007 11:23 > An: [EMAIL PROTECTED] > Betreff: Re: AW: AW: AW: [castor-user] What method gets called to add > elements to a collection? > > Werner Guttmann wrote: > > Andy, > > > > Sorry for the delay in looking into this, but the management of the > Castor 1.1.1 release took away quite some time I'd otherwise have used for > issue assessment. > > Not a problem! But really, I'm very happy to help, and I quite like the > opportunity to learn more about Java reflection! If you can advise me > where in Castor to find the code that should be calling the named > set-method, I'm happy to try some debugging with the Castor dev version. > > Thanks again, > Andy > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email