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. |
class |
FullyQualifiedAnnotationBeanNameGenerator
An extension of
AnnotationBeanNameGenerator that uses the fully qualified
class name as the default bean name if an explicit bean name is not supplied via
a supported type-level annotation such as @Component (see
AnnotationBeanNameGenerator for details on supported annotations). |
Modifier and Type | Method and Description |
---|---|
default void |
ImportBeanDefinitionRegistrar.registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
BeanDefinitionRegistry registry,
BeanNameGenerator importBeanNameGenerator)
Register bean definitions as necessary based on the given annotation metadata of
the importing
@Configuration class. |
void |
AnnotationConfigApplicationContext.setBeanNameGenerator(BeanNameGenerator beanNameGenerator)
Provide a custom
BeanNameGenerator for use with AnnotatedBeanDefinitionReader
and/or ClassPathBeanDefinitionScanner , if any. |
void |
ClassPathBeanDefinitionScanner.setBeanNameGenerator(BeanNameGenerator beanNameGenerator)
Set the BeanNameGenerator to use for detected bean classes.
|
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 |
AnnotatedBeanDefinitionReader.setBeanNameGenerator(BeanNameGenerator beanNameGenerator)
Set the
BeanNameGenerator to use for detected bean classes. |
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 . |