Uses of Interface
org.springframework.beans.factory.support.BeanNameGenerator
Packages that use BeanNameGenerator
Package
Description
Classes supporting the
org.springframework.beans.factory package.Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes.Support for creating a registry of HTTP Service client proxies, and declaring
the proxies as beans.
-
Uses of BeanNameGenerator in org.springframework.beans.factory.support
Classes in org.springframework.beans.factory.support that implement BeanNameGeneratorModifier and TypeClassDescriptionclassDefault implementation of theBeanNameGeneratorinterface, delegating toBeanDefinitionReaderUtils.generateBeanName(BeanDefinition, BeanDefinitionRegistry).Methods in org.springframework.beans.factory.support that return BeanNameGeneratorModifier and TypeMethodDescriptionAbstractBeanDefinitionReader.getBeanNameGenerator()BeanDefinitionReader.getBeanNameGenerator()Return theBeanNameGeneratorto use for anonymous beans (without explicit bean name specified).Methods in org.springframework.beans.factory.support with parameters of type BeanNameGeneratorModifier and TypeMethodDescriptionvoidAbstractBeanDefinitionReader.setBeanNameGenerator(@Nullable BeanNameGenerator beanNameGenerator) Set the BeanNameGenerator to use for anonymous beans (without explicit bean name specified). -
Uses of BeanNameGenerator in org.springframework.context.annotation
Subinterfaces of BeanNameGenerator in org.springframework.context.annotationModifier and TypeInterfaceDescriptioninterfaceExtended variant ofBeanNameGeneratorfor@Configurationclass purposes, not only covering bean name generation for component and configuration classes themselves but also for@Beanmethods.Classes in org.springframework.context.annotation that implement BeanNameGeneratorModifier and TypeClassDescriptionclassBeanNameGeneratorimplementation for bean classes annotated with the@Componentannotation or with another annotation that is itself annotated with@Componentas a meta-annotation.classAn extension ofAnnotationBeanNameGeneratorthat 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(seeAnnotationBeanNameGeneratorfor details on supported annotations).classExtended variant ofFullyQualifiedAnnotationBeanNameGeneratorfor@Configurationclass purposes, not only enforcing fully-qualified names for component and configuration classes themselves but also fully-qualified default bean names ("className.methodName") for@Beanmethods.Methods in org.springframework.context.annotation with parameters of type BeanNameGeneratorModifier and TypeMethodDescriptiondefault voidImportBeanDefinitionRegistrar.registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry, BeanNameGenerator importBeanNameGenerator) Register bean definitions as necessary based on the given annotation metadata of the importing@Configurationclass.voidAnnotatedBeanDefinitionReader.setBeanNameGenerator(@Nullable BeanNameGenerator beanNameGenerator) Set theBeanNameGeneratorto use for detected bean classes.voidAnnotationConfigApplicationContext.setBeanNameGenerator(BeanNameGenerator beanNameGenerator) Provide a customBeanNameGeneratorfor use withAnnotatedBeanDefinitionReaderand/orClassPathBeanDefinitionScanner, if any.voidClassPathBeanDefinitionScanner.setBeanNameGenerator(@Nullable BeanNameGenerator beanNameGenerator) Set the BeanNameGenerator to use for detected bean classes.voidConfigurationClassPostProcessor.setBeanNameGenerator(BeanNameGenerator beanNameGenerator) Set theBeanNameGeneratorto be used when triggering component scanning fromConfigurationclasses and when registeringImport'ed configuration classes. -
Uses of BeanNameGenerator in org.springframework.web.context.support
Methods in org.springframework.web.context.support that return BeanNameGeneratorModifier and TypeMethodDescriptionprotected @Nullable BeanNameGeneratorAnnotationConfigWebApplicationContext.getBeanNameGenerator()Return the customBeanNameGeneratorfor use withAnnotatedBeanDefinitionReaderand/orClassPathBeanDefinitionScanner, if any.Methods in org.springframework.web.context.support with parameters of type BeanNameGeneratorModifier and TypeMethodDescriptionvoidAnnotationConfigWebApplicationContext.setBeanNameGenerator(@Nullable BeanNameGenerator beanNameGenerator) Set a customBeanNameGeneratorfor use withAnnotatedBeanDefinitionReaderand/orClassPathBeanDefinitionScanner. -
Uses of BeanNameGenerator in org.springframework.web.service.registry
Methods in org.springframework.web.service.registry with parameters of type BeanNameGeneratorModifier and TypeMethodDescriptionfinal voidAbstractHttpServiceRegistrar.registerBeanDefinitions(AnnotationMetadata metadata, BeanDefinitionRegistry registry, BeanNameGenerator generator)