Browse Source

Removes setting FactoryBean.OBJECT_TYPE_ATTRIBUTE

It was previously ignored, changing it to a class introduces behaviour that breaks aot.

This is required by a6ff95a69c
update-docs-structure
spencergibb 1 year ago
parent
commit
3fc733f7ad
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignClientsRegistrar.java

2
spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignClientsRegistrar.java

@ -248,8 +248,6 @@ class FeignClientsRegistrar implements ImportBeanDefinitionRegistrar, ResourceLo @@ -248,8 +248,6 @@ class FeignClientsRegistrar implements ImportBeanDefinitionRegistrar, ResourceLo
// code
definition.addPropertyValue("qualifiers", qualifiers);
AbstractBeanDefinition beanDefinition = definition.getBeanDefinition();
Class<?> type = ClassUtils.resolveClassName(className, null);
beanDefinition.setAttribute(FactoryBean.OBJECT_TYPE_ATTRIBUTE, type);
// has a default, won't be null
boolean primary = (Boolean) attributes.get("primary");
beanDefinition.setPrimary(primary);

Loading…
Cancel
Save