Class SpringConfigurationPostProcessor
java.lang.Object
org.openehealth.ipf.commons.spring.core.config.SpringConfigurationPostProcessor
- All Implemented Interfaces:
EventListener
,ApplicationListener<ContextRefreshedEvent>
public class SpringConfigurationPostProcessor
extends Object
implements ApplicationListener<ContextRefreshedEvent>
Spring Listener which holds the instances of all
OrderedConfigurer
. These
instances are collected from the Spring context on a ContextRefreshedEvent
.- Author:
- Boris Stanojevic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
onApplicationEvent
(@NonNull ContextRefreshedEvent event) void
setRestartOnce
(boolean restartOnce) void
setSpringConfigurers
(List<OrderedConfigurer> springConfigurers) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
SpringConfigurationPostProcessor
public SpringConfigurationPostProcessor()
-
-
Method Details
-
configure
-
setRestartOnce
public void setRestartOnce(boolean restartOnce) - Parameters:
restartOnce
- if routes shall be initialized only once
-
getSpringConfigurers
-
setSpringConfigurers
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceApplicationListener<ContextRefreshedEvent>
-