java.lang.Object | |
↳ | org.springframework.context.annotation.AnnotationScopeMetadataResolver |
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 the
setScopeAnnotationType(Class)
property.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
scopeAnnotationType |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new instance of the
AnnotationScopeMetadataResolver class. | |||||||||||
Create a new instance of the
AnnotationScopeMetadataResolver class. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Resolve the
ScopeMetadata appropriate to the supplied
bean definition . | |||||||||||
Set the type of annotation that is checked for by this
AnnotationScopeMetadataResolver . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.annotation.ScopeMetadataResolver
|
Create a new instance of the AnnotationScopeMetadataResolver
class.
Create a new instance of the AnnotationScopeMetadataResolver
class.
defaultProxyMode | the desired scoped-proxy mode |
---|
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
attributeNames()
of the supplied definition
.
definition | the target bean definition |
---|
null
Set the type of annotation that is checked for by this
AnnotationScopeMetadataResolver
.
scopeAnnotationType | the target annotation type |
---|