New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify FactoryBean.OBJECT_TYPE_ATTRIBUTE
supported types
#29799
Comments
Spring Data also uses a |
I thought they would have removed it with the change to specify the targetType (the line above in your link). Ping @mp911de Irrespective of this issue, |
FWIW, Spring Data sets a |
Sorry for the confusion. There are two usages in Spring Data and I evidently linked to the wrong one. This is where a |
FactoryBean.OBJECT_TYPE_ATTRIBUTE
supported types
As of Spring Framework 6.1, a |
It was previously ignored, changing it to a class introduces behaviour that breaks aot. This is required by spring-projects/spring-framework@a6ff95a
…ObjectType of BeanDefinition attribute. Fixes mybatisgh-855 * Related with mybatisgh-494 * Related with spring-projects/spring-framework#29799
…ObjectType of BeanDefinition attribute. Fixes mybatisgh-855 * Related with mybatisgh-494 * Related with spring-projects/spring-framework#29799
The
FactoryBean.OBJECT_TYPE_ATTRIBUTE
can be used to give type information to aFactoryBean
. The documentation isn't clear about what types can be used.Both Spring Boot and Feign have used
String
values. It appears that in reality onlyClass
andResolvableType
are supported.Should
AbstractBeanFactory
also acceptString
values containing class names? Or should the types supported be documented inFactoryBean.OBJECT_TYPE_ATTRIBUTE
? If String types are not supported, the openfeign code should probably change.The text was updated successfully, but these errors were encountered: