As far as I can tell, there's no checks for the return type being void, looking at FieldHandlerImpl and AbstractMappingLoader.
Werner > -----Ursprüngliche Nachricht----- > Von: Werner Guttmann [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 12. April 2007 00:06 > An: [EMAIL PROTECTED] > Betreff: Re: AW: AW: [castor-user] What method gets called to add elements > to a collection? > > Not being able (and willing) to look at code at this time of the day, > for a final reply you'll have to wait until tomorrow. Having said that, > my current working assumption is we try to comply with the JavaBeans > specifiction when it comes down to method signatures for setter/getter > methods. > > Werner > > Andy Buckley wrote: > > On a slightly different issue... > > > > Can you confirm if the pattern matching for set- and add-type methods > requires > > that the return type is void? I'd very much like to be able to define > them as > > "return this", so that I can do > > > > Paper p = new Paper(); > > p.addDataset(d1).addDataset(d2).setTitle("Hello").etc.etc... > > > > If the return type *is* being checked, I'd like to request that it > isn't, or is > > at least less restrictive, for this reason! > > > > --------------------------------------------------------------------- > 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

