Top Description Methods
org.springframework.context.annotation

public Interface ScopeMetadataResolver

Known Direct Implementers
org.springframework.context.annotation.Jsr330ScopeMetadataResolver, org.springframework.context.annotation.AnnotationScopeMetadataResolver
Annotations
@FunctionalInterface
Imports
org.springframework.beans.factory.config.BeanDefinition

Strategy interface for resolving the scope of bean definitions.
Author
Mark Fisher
Since
2.5
See Also
org.springframework.context.annotation.Scope

Method Summary

Modifier and TypeMethod and Description
public ScopeMetadata

Returns:

the relevant scope metadata; never null
resolveScopeMetadata
(BeanDefinition
the target bean definition
definition
)

Resolve the ScopeMetadata appropriate to the supplied bean definition.

Method Detail

resolveScopeMetadataback to summary
public 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 spring 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 BeanDefinition#attributeNames() of the supplied definition.

Parameters
definition:BeanDefinition

the target bean definition

Returns:ScopeMetadata

the relevant scope metadata; never null