Package | Description |
---|---|
org.springframework.beans.factory.support |
Classes supporting the
org.springframework.beans.factory package. |
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 |
DefaultBeanNameGenerator
Default implementation of the
BeanNameGenerator interface, delegating to
BeanDefinitionReaderUtils.generateBeanName(BeanDefinition, BeanDefinitionRegistry) . |
Modifier and Type | Method and Description |
---|---|
BeanNameGenerator |
AbstractBeanDefinitionReader.getBeanNameGenerator() |
BeanNameGenerator |
BeanDefinitionReader.getBeanNameGenerator()
Return the BeanNameGenerator to use for anonymous beans
(without explicit bean name specified).
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractBeanDefinitionReader.setBeanNameGenerator(BeanNameGenerator beanNameGenerator)
Set the BeanNameGenerator to use for anonymous beans
(without explicit bean name specified).
|
Modifier and Type | Class and Description |
---|---|
class |
AnnotationBeanNameGenerator
BeanNameGenerator
implementation for bean classes annotated with the
@Component annotation
or with another annotation that is itself annotated with
@Component as a
meta-annotation. |
Modifier and Type | Method and Description |
---|---|
void |
ConfigurationClassPostProcessor.setBeanNameGenerator(BeanNameGenerator beanNameGenerator)
Set the
BeanNameGenerator to be used when triggering component scanning
from Configuration classes and when registering Import 'ed
configuration classes. |
void |
ClassPathBeanDefinitionScanner.setBeanNameGenerator(BeanNameGenerator beanNameGenerator)
Set the BeanNameGenerator to use for detected bean classes.
|
void |
AnnotatedBeanDefinitionReader.setBeanNameGenerator(BeanNameGenerator beanNameGenerator)
Set the BeanNameGenerator to use for detected bean classes.
|
void |
AnnotationConfigApplicationContext.setBeanNameGenerator(BeanNameGenerator beanNameGenerator)
Provide a custom
BeanNameGenerator for use with AnnotatedBeanDefinitionReader
and/or ClassPathBeanDefinitionScanner , if any. |
Modifier and Type | Method and Description |
---|---|
protected BeanNameGenerator |
AnnotationConfigWebApplicationContext.getBeanNameGenerator()
Return the custom
BeanNameGenerator for use with AnnotatedBeanDefinitionReader
and/or ClassPathBeanDefinitionScanner , if any. |
Modifier and Type | Method and Description |
---|---|
void |
AnnotationConfigWebApplicationContext.setBeanNameGenerator(BeanNameGenerator beanNameGenerator)
Set a custom
BeanNameGenerator for use with AnnotatedBeanDefinitionReader
and/or ClassPathBeanDefinitionScanner . |