Class ContextStartAfterRefreshListener
java.lang.Object
org.springframework.cloud.stream.binding.ContextStartAfterRefreshListener
- All Implemented Interfaces:
EventListener
Automatically starts the context after a refresh.
- Author:
- Marius Bogoevici
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) default boolean
-
Constructor Details
-
ContextStartAfterRefreshListener
public ContextStartAfterRefreshListener()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Throws:
org.springframework.beans.BeansException
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) -
supportsAsyncExecution
default boolean supportsAsyncExecution()
-