接口 ScopeMetadataResolver
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Strategy interface for resolving the scope of bean definitions.
- 从以下版本开始:
- 4.0
- 作者:
- Mark Fisher, TODAY 2021/10/26 15:56
- 另请参阅:
-
方法概要
修饰符和类型方法说明resolveScopeMetadata(BeanDefinition definition) Resolve theScopeMetadataappropriate to the supplied beandefinition.
-
方法详细资料
-
resolveScopeMetadata
Resolve theScopeMetadataappropriate to the supplied beandefinition.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 classof the supplieddefinition, or to use metadata present in theAttributeAccessor.getAttributeNames()of the supplieddefinition.- 参数:
definition- the target bean definition- 返回:
- the relevant scope metadata; never
null
-