Class SpringConfigurationPostProcessor
- java.lang.Object
-
- org.openehealth.ipf.commons.spring.core.config.SpringConfigurationPostProcessor
-
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class SpringConfigurationPostProcessor extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
Spring Listener which holds the instances of allOrderedConfigurer. These instances are collected from the Spring context on aContextRefreshedEvent.- Author:
- Boris Stanojevic
-
-
Constructor Summary
Constructors Constructor Description SpringConfigurationPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(Registry registry)List<OrderedConfigurer>getSpringConfigurers()voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)voidsetRestartOnce(boolean restartOnce)voidsetSpringConfigurers(List<OrderedConfigurer> springConfigurers)
-
-
-
Method Detail
-
configure
protected void configure(Registry registry)
-
setRestartOnce
public void setRestartOnce(boolean restartOnce)
- Parameters:
restartOnce-
-
getSpringConfigurers
public List<OrderedConfigurer> getSpringConfigurers()
-
setSpringConfigurers
public void setSpringConfigurers(List<OrderedConfigurer> springConfigurers)
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
-