Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » factory » config » [javadoc | source]
org.springframework.beans.factory.config
public interface: BeanFactoryPostProcessor [javadoc | source]

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

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.

Method from org.springframework.beans.factory.config.BeanFactoryPostProcessor Summary:
postProcessBeanFactory
Method from org.springframework.beans.factory.config.BeanFactoryPostProcessor Detail:
 public  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.