3535import org .springframework .beans .factory .config .BeanDefinition ;
3636import org .springframework .beans .factory .config .BeanDefinitionHolder ;
3737import org .springframework .beans .factory .groovy .GroovyBeanDefinitionReader ;
38- import org .springframework .beans .factory .parsing .ProblemReporter ;
3938import org .springframework .beans .factory .parsing .SourceExtractor ;
4039import org .springframework .beans .factory .support .AbstractBeanDefinitionReader ;
4140import org .springframework .beans .factory .support .BeanDefinitionReader ;
5150import org .springframework .core .io .ResourceLoader ;
5251import org .springframework .core .type .AnnotationMetadata ;
5352import org .springframework .core .type .MethodMetadata ;
54- import org .springframework .core .type .classreading .MetadataReaderFactory ;
5553import org .springframework .util .StringUtils ;
5654
5755/**
@@ -79,10 +77,6 @@ class ConfigurationClassBeanDefinitionReader {
7977
8078 private final SourceExtractor sourceExtractor ;
8179
82- private final ProblemReporter problemReporter ;
83-
84- private final MetadataReaderFactory metadataReaderFactory ;
85-
8680 private final ResourceLoader resourceLoader ;
8781
8882 private final Environment environment ;
@@ -99,14 +93,11 @@ class ConfigurationClassBeanDefinitionReader {
9993 * to populate the given {@link BeanDefinitionRegistry}.
10094 */
10195 ConfigurationClassBeanDefinitionReader (BeanDefinitionRegistry registry , SourceExtractor sourceExtractor ,
102- ProblemReporter problemReporter , MetadataReaderFactory metadataReaderFactory ,
10396 ResourceLoader resourceLoader , Environment environment , BeanNameGenerator importBeanNameGenerator ,
10497 ImportRegistry importRegistry ) {
10598
10699 this .registry = registry ;
107100 this .sourceExtractor = sourceExtractor ;
108- this .problemReporter = problemReporter ;
109- this .metadataReaderFactory = metadataReaderFactory ;
110101 this .resourceLoader = resourceLoader ;
111102 this .environment = environment ;
112103 this .importBeanNameGenerator = importBeanNameGenerator ;
@@ -243,8 +234,6 @@ private void loadBeanDefinitionsForBeanMethod(BeanMethod beanMethod) {
243234
244235 // Consider scoping
245236 ScopedProxyMode proxyMode = ScopedProxyMode .NO ;
246- // TODO [SPR-13280] Determine why type is hard coded to org.springframework.context.annotation.Scope,
247- // since AnnotationScopeMetadataResolver supports a custom scope annotation type.
248237 AnnotationAttributes attributes = AnnotationConfigUtils .attributesFor (metadata , Scope .class );
249238 if (attributes != null ) {
250239 beanDef .setScope (attributes .getAliasedString ("value" , Scope .class , configClass .getResource ()));
0 commit comments