org.springframework.config.java.process
Class ConfigurationPostProcessor

java.lang.Object
  extended by org.springframework.config.java.process.ConfigurationPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered

public class ConfigurationPostProcessor
extends java.lang.Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered

Post processor for use in a bean factory that can process multiple configuration beans. See the ConfigurationProcessor class's documentation for the semantics of a Configuration bean.

In the BeanFactoryPostProcessor implementation, this class adds factory bean definitions for every Configuration bean found in the bean factory. It also creates a child factory containing pointcuts and advisors required to interpret Pointcut attributes.

Author:
Rod Johnson, Costin Leau
See Also:
ConfigurationProcessor, Bean, Configuration

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ConfigurationPostProcessor()
           
 
Method Summary
 int getOrder()
          Guarantee to execute before any other BeanFactoryPostProcessors
 void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
          Generate BeanDefinitions and add them to factory for each Configuration bean.
 void setConfigurationListenerRegistry(ConfigurationListenerRegistry configurationListenerRegistry)
          The listener registry used by this factory bean.
 void setNamingStrategy(BeanNamingStrategy namingStrategy)
          BeanNamingStrategy used for generating the bean definitions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

ConfigurationPostProcessor

public ConfigurationPostProcessor()
Method Detail

postProcessBeanFactory

public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
Generate BeanDefinitions and add them to factory for each Configuration bean.

Specified by:
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
Throws:
org.springframework.beans.BeansException

getOrder

public int getOrder()
Guarantee to execute before any other BeanFactoryPostProcessors

Specified by:
getOrder in interface org.springframework.core.Ordered

setConfigurationListenerRegistry

public void setConfigurationListenerRegistry(ConfigurationListenerRegistry configurationListenerRegistry)
The listener registry used by this factory bean. Initially, DefaultConfigurationListenerRegistry is used.

Parameters:
configurationListenerRegistry - The configurationListenerRegistry to set.

setNamingStrategy

public void setNamingStrategy(BeanNamingStrategy namingStrategy)
BeanNamingStrategy used for generating the bean definitions.

Parameters:
namingStrategy - The namingStrategy to set.


Copyright © 2005-2007 Spring Framework. All Rights Reserved.