• Andy Wilkinson's avatar
    Consider @Bean methods with args to determine type created by factory · 905346d0
    Andy Wilkinson authored
    Previously, BeanTypeRegistry would only look for a @Bean method
    with no arguments when trying to determine the type that will be
    created by a factory bean. This meant that the type produced by a
    factory bean declared via a @Bean that has one or more arguments would
    be unknown and any on missing bean conditions look for a bean of the
    type produced by the factory bean would match in error.
    
    This commit updates BeanTypeRegistry to, where possible, use the
    factory method metadata for the bean definition when determining the
    type that will be created. This allows it to determine the type for
    factory bean created by @Bean methods that take arguments and also
    avoids the use reflection to find the factory method. Where factory
    method metadata is not available, the existing reflection-based
    approach is used as a fallback.
    
    Closes gh-3657
    905346d0
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...