You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide functionality similar to Spring Boot's BeanTypeRegistry #23056
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:
@philwebb Any movement on this issue? I could take a stab at PR for this, but I would need some guidance on which package to move the code and/or what to rename the BeanTypeRegistry such that it conforms to how things are organized in the core Spring framework.
Thanks for the offer @tkvangorder but I'm already in the middle of trying various changes. We won't be able to migrate BeanTypeRegistry as it is, instead we need to look at changing some of the core BeanFactory implementations. Unfortunately that's quite a complex part of the codebase so it's taking some time.
Activity
tkvangorder commentedon Jul 18, 2019
@philwebb Any movement on this issue? I could take a stab at PR for this, but I would need some guidance on which package to move the code and/or what to rename the
BeanTypeRegistrysuch that it conforms to how things are organized in the core Spring framework.philwebb commentedon Jul 18, 2019
Thanks for the offer @tkvangorder but I'm already in the middle of trying various changes. We won't be able to migrate
BeanTypeRegistryas it is, instead we need to look at changing some of the coreBeanFactoryimplementations. Unfortunately that's quite a complex part of the codebase so it's taking some time.tkvangorder commentedon Jul 18, 2019
yep, not for the faint of heart. 8) Make sense, thank you!