Top Description Methods
org.springframework.beans.factory.support

public Interface BeanDefinitionRegistryPostProcessor

extends BeanFactoryPostProcessor
Imports
org.springframework.beans.BeansException, org.springframework.beans.factory.config.BeanFactoryPostProcessor, .ConfigurableListableBeanFactory

Extension to the standard BeanFactoryPostProcessor SPI, allowing for the registration of further bean definitions before regular BeanFactoryPostProcessor detection kicks in. In particular, BeanDefinitionRegistryPostProcessor may register further bean definitions which in turn define BeanFactoryPostProcessor instances.
Author
Juergen Hoeller
Since
3.0.1
See Also
org.springframework.context.annotation.ConfigurationClassPostProcessor

Method Summary

Modifier and TypeMethod and Description
public void
postProcessBeanDefinitionRegistry(BeanDefinitionRegistry
the bean definition registry used by the application context
registry
)

Modify the application context's internal bean definition registry after its standard initialization.

public default void
postProcessBeanFactory(ConfigurableListableBeanFactory
the bean factory used by the application context
beanFactory
)

Implements org.springframework.beans.factory.config.BeanFactoryPostProcessor.postProcessBeanFactory.

Empty implementation of BeanFactoryPostProcessor#postProcessBeanFactory since custom BeanDefinitionRegistryPostProcessor implementations will typically only provide a postProcessBeanDefinitionRegistry method.

Method Detail

postProcessBeanDefinitionRegistryback to summary
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException

Modify the application context's internal bean definition registry after its standard initialization. All regular bean definitions will have been loaded, but no beans will have been instantiated yet. This allows for adding further bean definitions before the next post-processing phase kicks in.

Parameters
registry:BeanDefinitionRegistry

the bean definition registry used by the application context

Exceptions
BeansException:
in case of errors
postProcessBeanFactoryback to summary
public default void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException

Implements org.springframework.beans.factory.config.BeanFactoryPostProcessor.postProcessBeanFactory.

Empty implementation of BeanFactoryPostProcessor#postProcessBeanFactory since custom BeanDefinitionRegistryPostProcessor implementations will typically only provide a postProcessBeanDefinitionRegistry method.

Parameters
beanFactory:ConfigurableListableBeanFactory

Doc from org.springframework.beans.factory.config.BeanFactoryPostProcessor.postProcessBeanFactory.

the bean factory used by the application context

Annotations
@Override
Exceptions
BeansException:

Doc from org.springframework.beans.factory.config.BeanFactoryPostProcessor.postProcessBeanFactory.

in case of errors

Since
6.1