|
From: Torsten J. <tor...@on...> - 2004-10-22 23:00:56
|
Assaf, thank you for spotting this. I totally missed the point that child beans are allowed to override the parent bean's class. Ok, fixed that. Now a bean's constructor arguments and properties are always validated against the class provided by the bean (regardless if it's a root or a child bean). For a child bean without a class the corresponding parent's class is used for validation. If no parent bean was found in the same config file then validation is skipped. There's no easy way to guess in which of the other config files the parent bean is defined. If you like then give the updated version which is available on the update site a try. But you have to removed the old version of Spring IDE first because the plugin's version number didn't change. You can delete the feature and all the plugins of Spring IDE from the installation directory manually or use Eclipse's update manager to remove and repair the installed version of Spring IDE. Cheers, Torsten On 22.10.2004, at 10:34, Assaf Urieli wrote: > Testing IDE update 1.1.0. > > I have the following two bean definitions: > <bean id="formulaireAbstrait" > class="com.joliciel.aplikaterm.web.FormulaireAbstrait" > abstract="true"> > <property name="localeResolver"><ref > local="localeResolver"/></property> > </bean> > <bean id="authentifier" > class="com.joliciel.aplikaterm.web.FormulaireAuthentifier" > parent="formulaireAbstrait"> > <property name="formView"><value>login</value></property> > <property name="successView"><value>accueil</value></property> > <property name="serviceUtilisateur"><ref > local="serviceUtilisateur"/></property> > </bean> > > I get the following complaint: > No setter for property "serviceUtilisateur" found in class > "com.joliciel.aplikaterm.web.FormulaireAbstrait" > While it is true that the parent (FormulaireAbstrait) has no such > property, the child (FormulaireAuthentifier) does have the property, > and actual Spring configuration works fine. > > So it looks like the IDE is only searching for properties on the > parent, not the child. > > Best regards, > Assaf > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give > us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Springide-eclip-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springide-eclip-developer > |