org.riotfamily.common.beans.override
Class PropertyOverrideProcessor

java.lang.Object
  extended by org.riotfamily.common.beans.override.PropertyOverrideProcessor
All Implemented Interfaces:
BeanFactoryPostProcessor, Ordered, PriorityOrdered

public class PropertyOverrideProcessor
extends Object
implements BeanFactoryPostProcessor, PriorityOrdered

BeanFactoryPostProcessor that overrides properties of a bean that has been defined elsewhere. You can use this class to customize beans defined by Riot modules without having to overwrite them completely.

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
PropertyOverrideProcessor()
           
 
Method Summary
 int getOrder()
           
 void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
           
 void setOrder(int order)
           
 void setPropertyValues(PropertyValues propertyValues)
           
 void setRef(String ref)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyOverrideProcessor

public PropertyOverrideProcessor()
Method Detail

setRef

public void setRef(String ref)

setPropertyValues

public void setPropertyValues(PropertyValues propertyValues)

getOrder

public int getOrder()
Specified by:
getOrder in interface Ordered

setOrder

public void setOrder(int order)

postProcessBeanFactory

public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
                            throws BeansException
Specified by:
postProcessBeanFactory in interface BeanFactoryPostProcessor
Throws:
BeansException