Closed as not planned
Description
Phil Webb opened SPR-15197 and commented
The current registerBean
methods added to support functional registration take a beanType
class.
I have a feeling that we may need to register beans that include generics. e.g.
Repository<Foo> fooRepository = SomeThing.makeSomeFoo();
context.registerBean(..., fooRepository, ...);
Perhaps we should also offer registerBean
variants that take a ResolvableType
.
Affects: 5.0 M4
Issue Links:
- Programmatic bean registration with configuration classes #18353 Programmatic bean registration within configuration classes
- Add a functional way to register a bean [SPR-14832] #19398 Add a functional way to register a bean
- Allow programmatic registration of bean definitions with a ResolvableType [SPR-14580] #19149 Allow programmatic registration of bean definitions with a ResolvableType
- getBeanNamesForType(ResolvableType) doesn't match generic factory method return type for yet-to-be-created bean [SPR-15011] #19578 getBeanNamesForType(ResolvableType) doesn't match generic factory method return type for yet-to-be-created bean
- Publicly expose ResolvableType in RootBeanDefinition [SPR-17028] #21566 Publicly expose ResolvableType in RootBeanDefinition
0 votes, 5 watchers