-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement
Description
Sam Brannen opened SPR-13280 and commented
Status Quo
AnnotationScopeMetadataResolver supports custom scope annotation types via its scopeAnnotationType property, and ConfigurationClassBeanDefinitionReader internally uses an AnnotationScopeMetadataResolver for certain uses cases (see its scopeMetadataResolver field).
However, ConfigurationClassBeanDefinitionReader does not consistently support custom scope annotation types for all use cases. For example, ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod() hard codes the scope annotation type to org.springframework.context.annotation.Scope.
Deliverables
- Determine why the scope annotation type in
ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod()is hard coded toorg.springframework.context.annotation.Scope.- See
TODOinConfigurationClassBeanDefinitionReader.
- See
- Support custom scope annotation types consistently throughout
ConfigurationClassBeanDefinitionReader.
Affects: 4.0 GA
Issue Links:
- ScopedProxyMode resolution for custom scope meta-annotation not working with @Bean methods (with ASM-based scanning) [SPR-13394] #17974 ScopedProxyMode resolution for custom scope meta-annotation not working with
@Beanmethods (with ASM-based scanning)
Referenced from: commits f0ac278, aae0bd2
1 votes, 4 watchers
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancementA general enhancement