接口 ScopeMetadataResolver
public interface ScopeMetadataResolver
Strategy interface for resolving the scope of bean definitions.- 从以下版本开始:
- 2.5
- 作者:
- Mark Fisher
- 另请参阅:
Scope
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ScopeMetadata
resolveScopeMetadata(BeanDefinition definition)
Resolve theScopeMetadata
appropriate to the supplied beandefinition
.
方法详细资料
resolveScopeMetadata
ScopeMetadata resolveScopeMetadata(BeanDefinition definition)
Resolve theScopeMetadata
appropriate to the supplied beandefinition
.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 supplieddefinition
, or to use metadata present in theAttributeAccessor.attributeNames()
of the supplieddefinition
.- 参数:
definition
- the target bean definition- 返回:
- the relevant scope metadata; never
null