Class AppConfigurationEventListener
java.lang.Object
com.azure.spring.cloud.config.web.pullrefresh.AppConfigurationEventListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<org.springframework.web.context.support.ServletRequestHandledEvent>
@Component
public final class AppConfigurationEventListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.web.context.support.ServletRequestHandledEvent>
Listens for ServletRequestHandledEvents to check if the configurations need to be updated.
-
Constructor Summary
ConstructorDescriptionAppConfigurationEventListener
(AppConfigurationRefresh appConfigurationRefresh) Listens for ServletRequestHandledEvents to check if the configurations need to be updated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(org.springframework.web.context.support.ServletRequestHandledEvent event)
-
Constructor Details
-
AppConfigurationEventListener
Listens for ServletRequestHandledEvents to check if the configurations need to be updated.- Parameters:
appConfigurationRefresh
- Refresher for App Configuration stores.
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.web.context.support.ServletRequestHandledEvent event) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.web.context.support.ServletRequestHandledEvent>
-