Class SettingsBeanPostProcessor

java.lang.Object
org.n52.iceland.config.spring.SettingsBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

public class SettingsBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
Bean post processor, that adds beans to the SettingsService.
Since:
7.6.0
See Also:
  • Constructor Details

    • SettingsBeanPostProcessor

      public SettingsBeanPostProcessor()
  • Method Details

    • setSettingsService

      @Inject public void setSettingsService(SettingsService settingsService)
      Sets the SettingsManager used to configure the beans.
      Parameters:
      settingsService - the settings service
    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName)
      Adds the bean using the settings service.
      Specified by:
      postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Parameters:
      bean - the bean instance
      beanName - the bean name
      Returns:
      the bean
      Throws:
      org.springframework.beans.factory.BeanInitializationException - if the configuration fails
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName)
      Noop implementation, will just return bean.
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Parameters:
      bean - the bean instance
      beanName - the bean name
      Returns:
      bean