接口 ScopeMetadataResolver

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

@FunctionalInterface public interface ScopeMetadataResolver
Strategy interface for resolving the scope of bean definitions.
从以下版本开始:
4.0
作者:
Mark Fisher, TODAY 2021/10/26 15:56
另请参阅:
  • 方法详细资料

    • resolveScopeMetadata

      ScopeMetadata resolveScopeMetadata(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 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.getAttributeNames() of the supplied definition.

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