Uses of Interface
org.springframework.beans.factory.support.BeanDefinitionRegistry
Packages that use BeanDefinitionRegistry
Package
Description
Support package for declarative AOP configuration,
with XML schema being the primary configuration format.
Support for AOP-based scoping of target objects, with configurable backend.
Support package for Groovy-based bean definitions.
Classes supporting the
org.springframework.beans.factory package.Contains an abstract XML-based
BeanFactory implementation,
including a standard "spring-beans" XSD.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.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Classes supporting the
org.springframework.jdbc.core package.Support package for Spring's dynamic language machinery,
with XML schema being the primary configuration format.
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes.-
Uses of BeanDefinitionRegistry in org.springframework.aop.config
Methods in org.springframework.aop.config with parameters of type BeanDefinitionRegistryModifier and TypeMethodDescriptionstatic voidAopConfigUtils.forceAutoProxyCreatorToExposeProxy(BeanDefinitionRegistry registry) static voidAopConfigUtils.forceAutoProxyCreatorToUseClassProxying(BeanDefinitionRegistry registry) static BeanDefinitionAopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry) static BeanDefinitionAopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, Object source) static BeanDefinitionAopConfigUtils.registerAspectJAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry) static BeanDefinitionAopConfigUtils.registerAspectJAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, Object source) static BeanDefinitionAopConfigUtils.registerAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry) static BeanDefinitionAopConfigUtils.registerAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, Object source) -
Uses of BeanDefinitionRegistry in org.springframework.aop.scope
Methods in org.springframework.aop.scope with parameters of type BeanDefinitionRegistryModifier and TypeMethodDescriptionstatic BeanDefinitionHolderScopedProxyUtils.createScopedProxy(BeanDefinitionHolder definition, BeanDefinitionRegistry registry, boolean proxyTargetClass) Generate a scoped proxy for the supplied target bean, registering the target bean with an internal name and setting 'targetBeanName' on the scoped proxy. -
Uses of BeanDefinitionRegistry in org.springframework.beans.factory.groovy
Constructors in org.springframework.beans.factory.groovy with parameters of type BeanDefinitionRegistryModifierConstructorDescriptionCreate a newGroovyBeanDefinitionReaderfor the givenBeanDefinitionRegistry. -
Uses of BeanDefinitionRegistry in org.springframework.beans.factory.support
Classes in org.springframework.beans.factory.support that implement BeanDefinitionRegistryModifier and TypeClassDescriptionclassSpring's default implementation of theConfigurableListableBeanFactoryandBeanDefinitionRegistryinterfaces: a full-fledged bean factory based on bean definition metadata, extensible through post-processors.classSimple implementation of theBeanDefinitionRegistryinterface.Methods in org.springframework.beans.factory.support that return BeanDefinitionRegistryModifier and TypeMethodDescriptionfinal BeanDefinitionRegistryAbstractBeanDefinitionReader.getRegistry()BeanDefinitionReader.getRegistry()Return the bean factory to register the bean definitions with.Methods in org.springframework.beans.factory.support with parameters of type BeanDefinitionRegistryModifier and TypeMethodDescriptionstatic StringBeanDefinitionReaderUtils.generateBeanName(BeanDefinition beanDefinition, BeanDefinitionRegistry registry) Generate a bean name for the given top-level bean definition, unique within the given bean factory.static StringBeanDefinitionReaderUtils.generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry, boolean isInnerBean) Generate a bean name for the given bean definition, unique within the given bean factory.BeanNameGenerator.generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry) Generate a bean name for the given bean definition.DefaultBeanNameGenerator.generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry) voidBeanDefinitionRegistryPostProcessor.postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) Modify the application context's internal bean definition registry after its standard initialization.static voidBeanDefinitionReaderUtils.registerBeanDefinition(BeanDefinitionHolder definitionHolder, BeanDefinitionRegistry registry) Register the given bean definition with the given bean factory.static StringBeanDefinitionReaderUtils.registerWithGeneratedName(AbstractBeanDefinition definition, BeanDefinitionRegistry registry) Register the given bean definition with a generated name, unique within the given bean factory.static StringBeanDefinitionReaderUtils.uniqueBeanName(String beanName, BeanDefinitionRegistry registry) Turn the given bean name into a unique bean name for the given bean factory, appending a unique counter as suffix if necessary.Constructors in org.springframework.beans.factory.support with parameters of type BeanDefinitionRegistryModifierConstructorDescriptionprotectedCreate a new AbstractBeanDefinitionReader for the given bean factory.Deprecated.Create new PropertiesBeanDefinitionReader for the given bean factory. -
Uses of BeanDefinitionRegistry in org.springframework.beans.factory.xml
Methods in org.springframework.beans.factory.xml that return BeanDefinitionRegistryModifier and TypeMethodDescriptionParserContext.getRegistry()final BeanDefinitionRegistryXmlReaderContext.getRegistry()Return the bean definition registry to use.Methods in org.springframework.beans.factory.xml with parameters of type BeanDefinitionRegistryModifier and TypeMethodDescriptionprotected voidAbstractBeanDefinitionParser.registerBeanDefinition(BeanDefinitionHolder definition, BeanDefinitionRegistry registry) Constructors in org.springframework.beans.factory.xml with parameters of type BeanDefinitionRegistryModifierConstructorDescriptionCreate new XmlBeanDefinitionReader for the given bean factory. -
Uses of BeanDefinitionRegistry in org.springframework.context.annotation
Classes in org.springframework.context.annotation that implement BeanDefinitionRegistryModifier and TypeClassDescriptionclassStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjakarta.injectannotations.Methods in org.springframework.context.annotation that return BeanDefinitionRegistryModifier and TypeMethodDescriptionfinal BeanDefinitionRegistryAnnotatedBeanDefinitionReader.getRegistry()Get the BeanDefinitionRegistry that this reader operates on.final BeanDefinitionRegistryClassPathBeanDefinitionScanner.getRegistry()Return the BeanDefinitionRegistry that this scanner operates on.protected BeanDefinitionRegistryClassPathScanningCandidateComponentProvider.getRegistry()Return theBeanDefinitionRegistryused by this scanner, if any.ConditionContext.getRegistry()Return theBeanDefinitionRegistrythat will hold the bean definition should the condition match.Methods in org.springframework.context.annotation with parameters of type BeanDefinitionRegistryModifier and TypeMethodDescriptionprotected StringAnnotationBeanNameGenerator.buildDefaultBeanName(BeanDefinition definition, BeanDefinitionRegistry registry) Derive a default bean name from the given bean definition.static List<TypeFilter>TypeFilterUtils.createTypeFiltersFor(AnnotationAttributes filterAttributes, Environment environment, ResourceLoader resourceLoader, BeanDefinitionRegistry registry) Create type filters from the suppliedAnnotationAttributes, such as those sourced fromComponentScan.includeFilters()orComponentScan.excludeFilters().AnnotationBeanNameGenerator.generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry) voidConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) Derive further bean definitions from the configuration classes in the registry.voidConfigurationClassPostProcessor.processConfigBeanDefinitions(BeanDefinitionRegistry registry) Build and validate a configuration model based on the registry ofConfigurationclasses.static voidAnnotationConfigUtils.registerAnnotationConfigProcessors(BeanDefinitionRegistry registry) Register all relevant annotation post processors in the given registry.static Set<BeanDefinitionHolder>AnnotationConfigUtils.registerAnnotationConfigProcessors(BeanDefinitionRegistry registry, Object source) Register all relevant annotation post processors in the given registry.protected voidClassPathBeanDefinitionScanner.registerBeanDefinition(BeanDefinitionHolder definitionHolder, BeanDefinitionRegistry registry) Register the specified bean with the given registry.voidAutoProxyRegistrar.registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) Register, escalate, and configure the standard auto proxy creator (APC) against the given registry.default voidImportBeanDefinitionRegistrar.registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) Register bean definitions as necessary based on the given annotation metadata of the importing@Configurationclass.default voidImportBeanDefinitionRegistrar.registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry, BeanNameGenerator importBeanNameGenerator) Register bean definitions as necessary based on the given annotation metadata of the importing@Configurationclass.Constructors in org.springframework.context.annotation with parameters of type BeanDefinitionRegistryModifierConstructorDescriptionCreate a newAnnotatedBeanDefinitionReaderfor the given registry.AnnotatedBeanDefinitionReader(BeanDefinitionRegistry registry, Environment environment) Create a newAnnotatedBeanDefinitionReaderfor the given registry, using the givenEnvironment.Create a newClassPathBeanDefinitionScannerfor the given bean factory.ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry, boolean useDefaultFilters) Create a newClassPathBeanDefinitionScannerfor the given bean factory.ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry, boolean useDefaultFilters, Environment environment) Create a newClassPathBeanDefinitionScannerfor the given bean factory and using the givenEnvironmentwhen evaluating bean definition profile metadata.ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry, boolean useDefaultFilters, Environment environment, ResourceLoader resourceLoader) Create a newClassPathBeanDefinitionScannerfor the given bean factory and using the givenEnvironmentwhen evaluating bean definition profile metadata. -
Uses of BeanDefinitionRegistry in org.springframework.context.support
Classes in org.springframework.context.support that implement BeanDefinitionRegistryModifier and TypeClassDescriptionclassGeneric ApplicationContext implementation that holds a single internalDefaultListableBeanFactoryinstance and does not assume a specific bean definition format.classAnApplicationContextimplementation that extendsGenericApplicationContextand implementsGroovyObjectsuch that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String).classConvenient application context with built-in XML support.classApplicationContextimplementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources. -
Uses of BeanDefinitionRegistry in org.springframework.jdbc.core.support
Constructors in org.springframework.jdbc.core.support with parameters of type BeanDefinitionRegistryModifierConstructorDescriptionJdbcBeanDefinitionReader(BeanDefinitionRegistry beanFactory) Deprecated.Create a new JdbcBeanDefinitionReader for the given bean factory, using a default PropertiesBeanDefinitionReader underneath. -
Uses of BeanDefinitionRegistry in org.springframework.scripting.config
Methods in org.springframework.scripting.config with parameters of type BeanDefinitionRegistryModifier and TypeMethodDescriptionstatic BeanDefinitionLangNamespaceUtils.registerScriptFactoryPostProcessorIfNecessary(BeanDefinitionRegistry registry) Register aScriptFactoryPostProcessorbean definition in the suppliedBeanDefinitionRegistryif theScriptFactoryPostProcessorhasn't already been registered. -
Uses of BeanDefinitionRegistry in org.springframework.web.context.support
Classes in org.springframework.web.context.support that implement BeanDefinitionRegistryModifier and TypeClassDescriptionclassSubclass ofGenericApplicationContext, suitable for web environments.classStaticWebApplicationContextimplementation for testing.