spring-framework/org.springframework.context
Chris Beams 48836e2ebb Allow parameters in FactoryBean-returning @Bean methods
Prior to this change, an assumption was made in
AbstractAutowireCapableBeanFactory that any factory-method would have
zero parameters.  This may not be the case in @Bean methods.

We now look for the factory-method by name in a more flexible fashion
that accomodates the possibility of method parameters.

There remains at least one edge cases here where things could still fail,
for example a @Configuration class could have two FactoryBean-returning
methods of the same name, but each with different generic FactoryBean
types and different parameter lists. In this case, the implementation
may infer and return the wrong object type, as it currently returns
the first match for the given factory-method name.  The complexity cost
of ensuring that this never happens is not likely worth the trouble
given the very low likelihood of such an arrangement.

Issue: SPR-8762
2011-12-10 19:32:02 +00:00
..
.settings Merge 3.1.0 development branch into trunk 2010-10-25 19:48:20 +00:00
src Allow parameters in FactoryBean-returning @Bean methods 2011-12-10 19:32:02 +00:00
.classpath Upgrade to Hibernate Validator 4.2.0.Final 2011-12-09 13:09:11 +00:00
.project Revert accidental changes in Eclipse/pom metadata 2011-12-09 13:08:37 +00:00
.springBeans Remove "Feature" support introduced in 3.1 M1 2011-05-06 19:03:52 +00:00
build.xml + upgrade to AspectJ 1.6.8 2010-02-04 11:46:21 +00:00
context.iml Upgrade to Hibernate Validator 4.2.0.Final 2011-12-09 13:09:11 +00:00
ivy.xml used specific SLF4J versions for running the test suites of individual modules (fixing the Hibernate Validator 4.2 upgrade) 2011-12-09 17:53:29 +00:00
pom.xml Upgrade to Hibernate Validator 4.2.0.Final 2011-12-09 13:09:11 +00:00
template.mf cleanup of conversation dependencies 2011-10-20 09:56:07 +00:00