Package org.n52.iceland.config.spring
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:
Setting
-
-
Constructor Summary
Constructors Constructor Description SettingsBeanPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectpostProcessAfterInitialization(Object bean, String beanName)Noop implementation, will just returnbean.ObjectpostProcessBeforeInitialization(Object bean, String beanName)Adds thebeanusing the settings service.voidsetSettingsService(SettingsService settingsService)Sets theSettingsManagerused to configure the beans.
-
-
-
Method Detail
-
setSettingsService
@Inject public void setSettingsService(SettingsService settingsService)
Sets theSettingsManagerused to configure the beans.- Parameters:
settingsService- the settings service
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName)
Adds thebeanusing the settings service.- Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Parameters:
bean- the bean instancebeanName- 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 returnbean.- Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Parameters:
bean- the bean instancebeanName- the bean name- Returns:
bean
-
-