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).
org.springframework.context.annotation.Scope
| Modifier and Type | Field and Description |
|---|---|
| private final ScopedProxyMode | |
| protected Class |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AnnotationScopeMetadataResolver(ScopedProxyMode
the default scoped-proxy mode defaultProxyMode)Construct a new |
| Modifier and Type | Method and Description |
|---|---|
| public ScopeMetadata | resolveScopeMetadata(BeanDefinition
the target bean definition definition)Implements org. Resolve the |
| public void | setScopeAnnotationType(Class<? extends Annotation>
the target annotation type scopeAnnotationType)Set the type of annotation that is checked for by this
|
| defaultProxyMode | back to summary |
|---|---|
| private final ScopedProxyMode defaultProxyMode | |
| scopeAnnotationType | back to summary |
|---|---|
| protected Class<? extends Annotation> scopeAnnotationType | |
| AnnotationScopeMetadataResolver | back to summary |
|---|---|
| public AnnotationScopeMetadataResolver() Construct a new | |
| AnnotationScopeMetadataResolver | back to summary |
|---|---|
| public AnnotationScopeMetadataResolver(ScopedProxyMode defaultProxyMode) Construct a new
| |
| resolveScopeMetadata | back to summary |
|---|---|
| public ScopeMetadata resolveScopeMetadata(BeanDefinition definition) Implements org. Doc from org. Resolve the 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
| |
| setScopeAnnotationType | back to summary |
|---|---|
| public void setScopeAnnotationType(Class<? extends Annotation> scopeAnnotationType) Set the type of annotation that is checked for by this
| |