Hi
When the instatiation of Spring beans is lazy then it's possible to do a getBean() on the bean factory and get a BeansException thrown due to, say, a property being specified on a bean that does not exist.
Even when the instantiation is lazy, if the class="com.company.app.Something" and the Something class doesn't actually have a property setter of myProperty, yet you've specified <property name="myProperty>, then it's surely easy to programmatically verify that this is going to be a problem before deployment/runtime?
Has someone written something to do this already? It need to be programmatic, really - just coloring a name red in an IDE isn't really an aggressive enough validation check when deploying an app that may have lots of Spring config files and inexperienced users have changed implementation classes without checking that their changes are consistent with the Spring config files.
Tim


Reply With Quote
