Skip to content

Provide functionality similar to Spring Boot's BeanTypeRegistry #23056

Closed
@philwebb

Description

@philwebb

Spring Boot currently has an internal class called BeanTypeRegistry that is used by @ConditionalOnBean and @ConditionalOnMissingBean. We've have a recent issue where we need something similar, but rather than make it public in Spring Boot it might be better if Spring Framework could offer methods that we could use.

What we specifically need is a way to predict the bean type in a way that's very fast to call during condition evaluation and doesn't cause any early initialization of any beans (including FactoryBeans).


After some analysis, I'm going to split this issue up into a number of smaller parts:

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