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 Details

    • AppConfigurationEventListener

      public AppConfigurationEventListener(AppConfigurationRefresh appConfigurationRefresh)
      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 interface org.springframework.context.ApplicationListener<org.springframework.web.context.support.ServletRequestHandledEvent>