Skip to content

Clarify FactoryBean.OBJECT_TYPE_ATTRIBUTE supported types #29799

Closed
@philwebb

Description

@philwebb

The FactoryBean.OBJECT_TYPE_ATTRIBUTE can be used to give type information to a FactoryBean. 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 only Class and ResolvableType are supported.

Should AbstractBeanFactory also accept String values containing class names? Or should the types supported be documented in FactoryBean.OBJECT_TYPE_ATTRIBUTE? If String types are not supported, the openfeign code should probably change.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions