## 接口的使用
org.springframework.context.annotation.ScopeMetadataResolver

- 使用ScopeMetadataResolver的程序包
  程序包 | 说明
  --- | ---
  org.springframework.context.annotation | Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.

- - ### org.springframework.context.annotation中ScopeMetadataResolver的使用

    实现ScopeMetadataResolver的org.springframework.context.annotation中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AnnotationScopeMetadataResolver` A `ScopeMetadataResolver` implementation that by default checks for the presence of Spring's `@Scope` annotation on the bean class.
    `class` | `Jsr330ScopeMetadataResolver` Simple `ScopeMetadataResolver` implementation that follows JSR-330 scoping rules: defaulting to prototype scope unless `Singleton` is present.

    参数类型为ScopeMetadataResolver的org.springframework.context.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | AnnotatedBeanDefinitionReader.`setScopeMetadataResolver(ScopeMetadataResolver scopeMetadataResolver)` Set the ScopeMetadataResolver to use for detected bean classes.
    `void` | AnnotationConfigApplicationContext.`setScopeMetadataResolver(ScopeMetadataResolver scopeMetadataResolver)` Set the `ScopeMetadataResolver` to use for detected bean classes.
    `void` | ClassPathBeanDefinitionScanner.`setScopeMetadataResolver(ScopeMetadataResolver scopeMetadataResolver)` Set the ScopeMetadataResolver to use for detected bean classes.