站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

BeanFactoryPostProcessor (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.beans.factory.config
Interface BeanFactoryPostProcessor

All Known Implementing Classes:
CustomEditorConfigurer, CustomScopeConfigurer, PreferencesPlaceholderConfigurer, PropertyOverrideConfigurer, PropertyPlaceholderConfigurer, PropertyResourceConfigurer, ServletContextPropertyPlaceholderConfigurer

public interface BeanFactoryPostProcessor

Allows for custom modification of an application context's bean definitions, adapting the bean property values of the context's underlying bean factory.

Application contexts can auto-detect BeanFactoryPostProcessor beans in their bean definitions and apply them before any other beans get created.

Useful for custom config files targeted at system administrators that override bean properties configured in the application context.

See PropertyResourceConfigurer and its concrete implementations for out-of-the-box solutions that address such configuration needs.

Since:
06.07.2003
Author:
Juergen Hoeller
See Also:
BeanPostProcessor, PropertyResourceConfigurer

Method Summary
 void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
          Modify the application context's internal bean factory after its standard initialization.
 

Method Detail

postProcessBeanFactory

void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
                            throws BeansException
Modify the application context's internal bean factory after its standard initialization. All bean definitions will have been loaded, but no beans will have been instantiated yet. This allows for overriding or adding properties even to eager-initializing beans.

Parameters:
beanFactory - the bean factory used by the application context
Throws:
BeansException - in case of errors

The Spring Framework

Copyright © 2002-2007 The Spring Framework.