Uses of Interface
org.springframework.beans.factory.support.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
Modifier and TypeMethodDescriptionstatic void
AopConfigUtils.forceAutoProxyCreatorToExposeProxy
(BeanDefinitionRegistry registry) static void
AopConfigUtils.forceAutoProxyCreatorToUseClassProxying
(BeanDefinitionRegistry registry) static BeanDefinition
AopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry) static BeanDefinition
AopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry, Object source) static BeanDefinition
AopConfigUtils.registerAspectJAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry) static BeanDefinition
AopConfigUtils.registerAspectJAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry, Object source) static BeanDefinition
AopConfigUtils.registerAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry) static BeanDefinition
AopConfigUtils.registerAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry, Object source) -
Uses of BeanDefinitionRegistry in org.springframework.aop.scope
Modifier and TypeMethodDescriptionstatic BeanDefinitionHolder
ScopedProxyUtils.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
ModifierConstructorDescriptionCreate a newGroovyBeanDefinitionReader
for the givenBeanDefinitionRegistry
. -
Uses of BeanDefinitionRegistry in org.springframework.beans.factory.support
Modifier and TypeClassDescriptionclass
Spring's default implementation of theConfigurableListableBeanFactory
andBeanDefinitionRegistry
interfaces: a full-fledged bean factory based on bean definition metadata, extensible through post-processors.class
Simple implementation of theBeanDefinitionRegistry
interface.Modifier and TypeMethodDescriptionfinal BeanDefinitionRegistry
AbstractBeanDefinitionReader.getRegistry()
BeanDefinitionReader.getRegistry()
Return the bean factory to register the bean definitions with.Modifier and TypeMethodDescriptionstatic String
BeanDefinitionReaderUtils.generateBeanName
(BeanDefinition beanDefinition, BeanDefinitionRegistry registry) Generate a bean name for the given top-level bean definition, unique within the given bean factory.static String
BeanDefinitionReaderUtils.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) void
BeanDefinitionRegistryPostProcessor.postProcessBeanDefinitionRegistry
(BeanDefinitionRegistry registry) Modify the application context's internal bean definition registry after its standard initialization.static void
BeanDefinitionReaderUtils.registerBeanDefinition
(BeanDefinitionHolder definitionHolder, BeanDefinitionRegistry registry) Register the given bean definition with the given bean factory.static String
BeanDefinitionReaderUtils.registerWithGeneratedName
(AbstractBeanDefinition definition, BeanDefinitionRegistry registry) Register the given bean definition with a generated name, unique within the given bean factory.static String
BeanDefinitionReaderUtils.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.ModifierConstructorDescriptionprotected
Create 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
Modifier and TypeMethodDescriptionParserContext.getRegistry()
final BeanDefinitionRegistry
XmlReaderContext.getRegistry()
Return the bean definition registry to use.Modifier and TypeMethodDescriptionprotected void
AbstractBeanDefinitionParser.registerBeanDefinition
(BeanDefinitionHolder definition, BeanDefinitionRegistry registry) ModifierConstructorDescriptionCreate new XmlBeanDefinitionReader for the given bean factory. -
Uses of BeanDefinitionRegistry in org.springframework.context.annotation
Modifier and TypeClassDescriptionclass
Standalone application context, accepting component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
types and JSR-330 compliant classes usingjakarta.inject
annotations.Modifier and TypeMethodDescriptionfinal BeanDefinitionRegistry
AnnotatedBeanDefinitionReader.getRegistry()
Get the BeanDefinitionRegistry that this reader operates on.final BeanDefinitionRegistry
ClassPathBeanDefinitionScanner.getRegistry()
Return the BeanDefinitionRegistry that this scanner operates on.protected BeanDefinitionRegistry
ClassPathScanningCandidateComponentProvider.getRegistry()
Return theBeanDefinitionRegistry
used by this scanner, if any.ConditionContext.getRegistry()
Return theBeanDefinitionRegistry
that will hold the bean definition should the condition match.Modifier and TypeMethodDescriptionprotected String
AnnotationBeanNameGenerator.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) void
ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry
(BeanDefinitionRegistry registry) Derive further bean definitions from the configuration classes in the registry.void
ConfigurationClassPostProcessor.processConfigBeanDefinitions
(BeanDefinitionRegistry registry) Build and validate a configuration model based on the registry ofConfiguration
classes.static void
AnnotationConfigUtils.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 void
ClassPathBeanDefinitionScanner.registerBeanDefinition
(BeanDefinitionHolder definitionHolder, BeanDefinitionRegistry registry) Register the specified bean with the given registry.void
AutoProxyRegistrar.registerBeanDefinitions
(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) Register, escalate, and configure the standard auto proxy creator (APC) against the given registry.default void
ImportBeanDefinitionRegistrar.registerBeanDefinitions
(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) Register bean definitions as necessary based on the given annotation metadata of the importing@Configuration
class.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.ModifierConstructorDescriptionCreate a newAnnotatedBeanDefinitionReader
for the given registry.AnnotatedBeanDefinitionReader
(BeanDefinitionRegistry registry, Environment environment) Create a newAnnotatedBeanDefinitionReader
for the given registry, using the givenEnvironment
.Create a newClassPathBeanDefinitionScanner
for the given bean factory.ClassPathBeanDefinitionScanner
(BeanDefinitionRegistry registry, boolean useDefaultFilters) Create a newClassPathBeanDefinitionScanner
for the given bean factory.ClassPathBeanDefinitionScanner
(BeanDefinitionRegistry registry, boolean useDefaultFilters, Environment environment) Create a newClassPathBeanDefinitionScanner
for the given bean factory and using the givenEnvironment
when evaluating bean definition profile metadata.ClassPathBeanDefinitionScanner
(BeanDefinitionRegistry registry, boolean useDefaultFilters, Environment environment, ResourceLoader resourceLoader) Create a newClassPathBeanDefinitionScanner
for the given bean factory and using the givenEnvironment
when evaluating bean definition profile metadata. -
Uses of BeanDefinitionRegistry in org.springframework.context.support
Modifier and TypeClassDescriptionclass
Generic ApplicationContext implementation that holds a single internalDefaultListableBeanFactory
instance and does not assume a specific bean definition format.class
AnApplicationContext
implementation that extendsGenericApplicationContext
and implementsGroovyObject
such that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String)
.class
Convenient application context with built-in XML support.class
ApplicationContext
implementation 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
ModifierConstructorDescriptionJdbcBeanDefinitionReader
(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
Modifier and TypeMethodDescriptionstatic BeanDefinition
LangNamespaceUtils.registerScriptFactoryPostProcessorIfNecessary
(BeanDefinitionRegistry registry) Register aScriptFactoryPostProcessor
bean definition in the suppliedBeanDefinitionRegistry
if theScriptFactoryPostProcessor
hasn't already been registered. -
Uses of BeanDefinitionRegistry in org.springframework.web.context.support
Modifier and TypeClassDescriptionclass
Subclass ofGenericApplicationContext
, suitable for web environments.class
StaticWebApplicationContext
implementation for testing.