35
35
import org .springframework .beans .factory .config .BeanDefinition ;
36
36
import org .springframework .beans .factory .config .BeanDefinitionHolder ;
37
37
import org .springframework .beans .factory .groovy .GroovyBeanDefinitionReader ;
38
- import org .springframework .beans .factory .parsing .ProblemReporter ;
39
38
import org .springframework .beans .factory .parsing .SourceExtractor ;
40
39
import org .springframework .beans .factory .support .AbstractBeanDefinitionReader ;
41
40
import org .springframework .beans .factory .support .BeanDefinitionReader ;
51
50
import org .springframework .core .io .ResourceLoader ;
52
51
import org .springframework .core .type .AnnotationMetadata ;
53
52
import org .springframework .core .type .MethodMetadata ;
54
- import org .springframework .core .type .classreading .MetadataReaderFactory ;
55
53
import org .springframework .util .StringUtils ;
56
54
57
55
/**
@@ -79,10 +77,6 @@ class ConfigurationClassBeanDefinitionReader {
79
77
80
78
private final SourceExtractor sourceExtractor ;
81
79
82
- private final ProblemReporter problemReporter ;
83
-
84
- private final MetadataReaderFactory metadataReaderFactory ;
85
-
86
80
private final ResourceLoader resourceLoader ;
87
81
88
82
private final Environment environment ;
@@ -99,14 +93,11 @@ class ConfigurationClassBeanDefinitionReader {
99
93
* to populate the given {@link BeanDefinitionRegistry}.
100
94
*/
101
95
ConfigurationClassBeanDefinitionReader (BeanDefinitionRegistry registry , SourceExtractor sourceExtractor ,
102
- ProblemReporter problemReporter , MetadataReaderFactory metadataReaderFactory ,
103
96
ResourceLoader resourceLoader , Environment environment , BeanNameGenerator importBeanNameGenerator ,
104
97
ImportRegistry importRegistry ) {
105
98
106
99
this .registry = registry ;
107
100
this .sourceExtractor = sourceExtractor ;
108
- this .problemReporter = problemReporter ;
109
- this .metadataReaderFactory = metadataReaderFactory ;
110
101
this .resourceLoader = resourceLoader ;
111
102
this .environment = environment ;
112
103
this .importBeanNameGenerator = importBeanNameGenerator ;
@@ -243,8 +234,6 @@ private void loadBeanDefinitionsForBeanMethod(BeanMethod beanMethod) {
243
234
244
235
// Consider scoping
245
236
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.
248
237
AnnotationAttributes attributes = AnnotationConfigUtils .attributesFor (metadata , Scope .class );
249
238
if (attributes != null ) {
250
239
beanDef .setScope (attributes .getAliasedString ("value" , Scope .class , configClass .getResource ()));
0 commit comments