Package | Description |
---|---|
org.springframework.context.annotation |
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
|
org.springframework.web.context.support |
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes. |
Modifier and Type | Class and Description |
---|---|
class |
AnnotationScopeMetadataResolver
A
ScopeMetadataResolver implementation that by default checks for
the presence of Spring's @Scope annotation on the bean class. |
class |
Jsr330ScopeMetadataResolver
Simple
ScopeMetadataResolver implementation that follows JSR-330 scoping rules:
defaulting to prototype scope unless Singleton is present. |
Modifier and Type | Method and Description |
---|---|
void |
AnnotatedBeanDefinitionReader.setScopeMetadataResolver(ScopeMetadataResolver scopeMetadataResolver)
Set the
ScopeMetadataResolver to use for registered component classes. |
void |
ClassPathBeanDefinitionScanner.setScopeMetadataResolver(ScopeMetadataResolver scopeMetadataResolver)
Set the ScopeMetadataResolver to use for detected bean classes.
|
void |
AnnotationConfigApplicationContext.setScopeMetadataResolver(ScopeMetadataResolver scopeMetadataResolver)
Set the
ScopeMetadataResolver to use for registered component classes. |
Modifier and Type | Method and Description |
---|---|
protected ScopeMetadataResolver |
AnnotationConfigWebApplicationContext.getScopeMetadataResolver()
Return the custom
ScopeMetadataResolver for use with AnnotatedBeanDefinitionReader
and/or ClassPathBeanDefinitionScanner , if any. |
Modifier and Type | Method and Description |
---|---|
void |
AnnotationConfigWebApplicationContext.setScopeMetadataResolver(ScopeMetadataResolver scopeMetadataResolver)
Set a custom
ScopeMetadataResolver for use with AnnotatedBeanDefinitionReader
and/or ClassPathBeanDefinitionScanner . |