Interface ScopeMetadataResolver
- All Known Implementing Classes:
AnnotationScopeMetadataResolver
,Jsr330ScopeMetadataResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface for resolving the scope of bean definitions.
- Since:
- 2.5
- Author:
- Mark Fisher
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionresolveScopeMetadata
(BeanDefinition definition) Resolve theScopeMetadata
appropriate to the supplied beandefinition
.
-
Method Details
-
resolveScopeMetadata
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
.- Parameters:
definition
- the target bean definition- Returns:
- the relevant scope metadata; never
null
-