public class ConfigurationBeanFactoryPostProcessor extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor
BeanFactoryPostProcessor
which lookup the configuration file for the
configured beans and register the right class with the given beanname for it.
The class is lookup-ed via the class="" tag in the configuration file. The
lookup of the configuration file is done via the
ConfigurationProvider.getConfiguration(String)
method. Which take the
beanname as argument
It also support to register aliases for the beans. The value of the map entry
is used as a comma-seperated list of aliases. If you don't need to register
an alias just us an empty value.Constructor and Description |
---|
ConfigurationBeanFactoryPostProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
Parse the configuration file and depending on it register the beans
|
void |
setBeans(Map<String,String> beans) |
public ConfigurationBeanFactoryPostProcessor()
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
org.springframework.beans.BeansException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.