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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpostProcessAfterInitialization(Object bean, String beanName) Noop implementation, will just returnbean.postProcessBeforeInitialization(Object bean, String beanName) Adds thebeanusing the settings service.voidsetSettingsService(SettingsService settingsService) Sets theSettingsManagerused to configure the beans.
-
Constructor Details
-
SettingsBeanPostProcessor
public SettingsBeanPostProcessor()
-
-
Method Details
-
setSettingsService
Sets theSettingsManagerused to configure the beans.- Parameters:
settingsService- the settings service
-
postProcessBeforeInitialization
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
Noop implementation, will just returnbean.- Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Parameters:
bean- the bean instancebeanName- the bean name- Returns:
bean
-