org.springframework.context.annotation

## 接口 ScopeMetadataResolver

- 所有已知实现类:
    AnnotationScopeMetadataResolver, Jsr330ScopeMetadataResolver
  函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

      @FunctionalInterface
      public interface ScopeMetadataResolver

  Strategy interface for resolving the scope of bean definitions.
  从以下版本开始:
    2.5
  作者:
    Mark Fisher
  另请参阅:
    `Scope`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `ScopeMetadata` | `resolveScopeMetadata(org.springframework.beans.factory.config.BeanDefinition definition)` Resolve the `ScopeMetadata` appropriate to the supplied bean `definition`.

- - ### 方法详细资料

    - #### resolveScopeMetadata

          ScopeMetadata resolveScopeMetadata(org.springframework.beans.factory.config.BeanDefinition definition)

      Resolve the `ScopeMetadata` appropriate to the supplied bean `definition`.

      Implementations can of course use any strategy they like to determine the scope metadata, but some implementations that spring immediately to mind might be to use source level annotations present on `the class` of the supplied `definition`, or to use metadata present in the `AttributeAccessor.attributeNames()` of the supplied `definition`.

      参数:
        `definition` - the target bean definition
      返回:
        the relevant scope metadata; never `null`