com.elasticpath.commons.util.impl
Class PluginBeanFactoryPostProcessor

java.lang.Object
  extended by com.elasticpath.commons.util.impl.PluginBeanFactoryPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor

public class PluginBeanFactoryPostProcessor
extends java.lang.Object
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor

PluginBeanFactoryPostProcessor allows plugins to self-configure without having to modify the original base configuration files.


Constructor Summary
PluginBeanFactoryPostProcessor()
           
 
Method Summary
 void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
          Modify the application context's internal bean factory after its standard initialization.
 void setExtensionBeanName(java.lang.String extensionBeanName)
          Setter for the bean name to extend.
 void setExtensionClassName(java.lang.String extensionClassName)
          Set the class name for the bean to use.
 void setPropertyName(java.lang.String propertyName)
          Set the name of the property to override.
 void setPropertyValue(java.lang.Object propertyValue)
          Set the value of the property being overridden.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginBeanFactoryPostProcessor

public PluginBeanFactoryPostProcessor()
Method Detail

postProcessBeanFactory

public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                            throws org.springframework.beans.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 us to override properties.

Specified by:
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
Parameters:
beanFactory - - the bean factory used by the application context
Throws:
org.springframework.beans.BeansException - - in case of errors

setExtensionBeanName

public void setExtensionBeanName(java.lang.String extensionBeanName)
Setter for the bean name to extend.

Parameters:
extensionBeanName - - the extensionBeanName to set

setExtensionClassName

public void setExtensionClassName(java.lang.String extensionClassName)
Set the class name for the bean to use.

Parameters:
extensionClassName - - the extensionClassName to set

setPropertyName

public void setPropertyName(java.lang.String propertyName)
Set the name of the property to override.

Parameters:
propertyName - - the propertyName to set

setPropertyValue

public void setPropertyValue(java.lang.Object propertyValue)
Set the value of the property being overridden.

Parameters:
propertyValue - - the propertyValue to set