インターフェース BeanDefinitionRegistryPostProcessor
- すべてのスーパーインターフェース:
BeanFactoryPostProcessor
- すべての既知の実装クラス:
ConfigurationClassPostProcessor
標準の
BeanFactoryPostProcessor
SPI への拡張。通常の BeanFactoryPostProcessor 検出が開始する前に、追加の Bean 定義を登録できます。特に、BeanDefinitionRegistryPostProcessor は、BeanFactoryPostProcessor インスタンスを定義する追加の Bean 定義を登録できます。- 導入:
- 3.0.1
- 作成者:
- Juergen Hoeller
- 関連事項:
方法の概要
修飾子と型メソッド説明void
標準の初期化後に、アプリケーションコンテキストの内部 Bean 定義レジストリを変更します。default void
postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) カスタムBeanDefinitionRegistryPostProcessor
実装は通常、postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry)
メソッドのみを提供するため、BeanFactoryPostProcessor.postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory)
の空の実装。
メソッドの詳細
postProcessBeanDefinitionRegistry
標準の初期化後に、アプリケーションコンテキストの内部 Bean 定義レジストリを変更します。通常の Bean 定義はすべて読み込まれますが、Bean はまだインスタンス化されていません。これにより、次の後処理フェーズが始まる前に、Bean 定義をさらに追加できます。- パラメーター:
registry
- アプリケーションコンテキストで使用される Bean 定義レジストリ- 例外:
BeansException
- エラーの場合
postProcessBeanFactory
default void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException カスタムBeanDefinitionRegistryPostProcessor
実装は通常、postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry)
メソッドのみを提供するため、BeanFactoryPostProcessor.postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory)
の空の実装。- 次で指定:
- インターフェース
BeanFactoryPostProcessor
のpostProcessBeanFactory
- パラメーター:
beanFactory
- アプリケーションコンテキストで使用される Bean ファクトリ- 例外:
BeansException
- エラーの場合- 導入:
- 6.1