spring-framework / org.springframework.context.annotation / AnnotationScopeMetadataResolver

AnnotationScopeMetadataResolver

open class AnnotationScopeMetadataResolver : ScopeMetadataResolver

A ScopeMetadataResolver implementation that by default checks for the presence of Spring's Scope annotation on the bean class.

The exact type of annotation that is checked for is configurable via #setScopeAnnotationType(Class).

Author
Mark Fisher

Author
Juergen Hoeller

Author
Sam Brannen

Since
2.5

See Also
org.springframework.context.annotation.Scope

Constructors

<init>

AnnotationScopeMetadataResolver()

Construct a new AnnotationScopeMetadataResolver.

AnnotationScopeMetadataResolver(defaultProxyMode: ScopedProxyMode)

Construct a new AnnotationScopeMetadataResolver using the supplied default ScopedProxyMode.

Functions

resolveScopeMetadata

open fun resolveScopeMetadata(definition: BeanDefinition): ScopeMetadata

setScopeAnnotationType

open fun setScopeAnnotationType(scopeAnnotationType: Class<out Annotation>): Unit

Set the type of annotation that is checked for by this AnnotationScopeMetadataResolver.