public class ConfiguringBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
SettingsService bean. Configuration takes place after all
dependencies are injected, but before any initialization methods are called.
Note that all beans that are required to create the SettingsService
bean can not be processed.Configurable,
Setting| Constructor and Description |
|---|
ConfiguringBeanPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
postProcessAfterInitialization(Object bean,
String beanName)
Noop implementation, will just return
bean. |
Object |
postProcessBeforeInitialization(Object bean,
String beanName)
Configures the
bean using the settings service. |
void |
setSettingsService(SettingsService settingsService)
Sets the
SettingsManager used to configure the beans. |
@Inject public void setSettingsService(SettingsService settingsService)
SettingsManager used to configure the beans.settingsService - the settings servicepublic Object postProcessBeforeInitialization(Object bean, String beanName)
bean using the settings service.postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessorbean - the bean instancebeanName - the bean nameorg.springframework.beans.factory.BeanInitializationException - if the configuration failspublic Object postProcessAfterInitialization(Object bean, String beanName)
bean.postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessorbean - the bean instancebeanName - the bean namebeanCopyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.