• Dave Syer's avatar
    Add conditional processing option for unhelpful FactoryBeans · e9d594c6
    Dave Syer authored
    OnBeanCondition has some issues with FactoryBean object types where
    the FactoryBean is not generic (i.e. you have to instantiate it to
    get its object type). This is a known issue (see tests in
    ConditionalOnMissingBeanTests), but we can provide some help for
    library authors who know the type in advance. The approach we have
    taken here is to check the BeanDefinition for an attribute called
    "factoryBeanObjectType" (OnBeanCondition.FACTORY_BEAN_OBJECT_TYPE)
    which, if it exists, can be used as a tie-breaker. Its value should
    be a Class<?> instance.
    
    Fixes gh-921
    e9d594c6
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-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...
README.adoc Loading commit data...
pom.xml Loading commit data...