类 AnnotationScopeMetadataResolver
java.lang.Object
cn.taketoday.context.annotation.AnnotationScopeMetadataResolver
- 所有已实现的接口:
ScopeMetadataResolver
A
ScopeMetadataResolver implementation that by default checks for
the presence of Framework's @Scope annotation on the bean class.
The exact type of annotation that is checked for is configurable via
setScopeAnnotationType(Class).
- 从以下版本开始:
- 4.0
- 作者:
- Mark Fisher, Juergen Hoeller, Sam Brannen, TODAY 2021/10/26 15:57
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器构造器说明Construct a newAnnotationScopeMetadataResolver.AnnotationScopeMetadataResolver(ScopedProxyMode defaultProxyMode) Construct a newAnnotationScopeMetadataResolverusing the supplied defaultScopedProxyMode. -
方法概要
修饰符和类型方法说明resolveScopeMetadata(BeanDefinition definition) Resolve theScopeMetadataappropriate to the supplied beandefinition.voidsetScopeAnnotationType(Class<? extends Annotation> scopeAnnotationType) Set the type of annotation that is checked for by thisAnnotationScopeMetadataResolver.
-
字段详细资料
-
scopeAnnotationType
-
-
构造器详细资料
-
AnnotationScopeMetadataResolver
public AnnotationScopeMetadataResolver()Construct a newAnnotationScopeMetadataResolver. -
AnnotationScopeMetadataResolver
Construct a newAnnotationScopeMetadataResolverusing the supplied defaultScopedProxyMode.- 参数:
defaultProxyMode- the default scoped-proxy mode
-
-
方法详细资料
-
setScopeAnnotationType
Set the type of annotation that is checked for by thisAnnotationScopeMetadataResolver.- 参数:
scopeAnnotationType- the target annotation type
-
resolveScopeMetadata
从接口复制的说明:ScopeMetadataResolverResolve 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.- 指定者:
resolveScopeMetadata在接口中ScopeMetadataResolver- 参数:
definition- the target bean definition- 返回:
- the relevant scope metadata; never
null
-