Class NacosPropertySourceRefreshListener

java.lang.Object
com.alibaba.cloud.nacos.refresh.NacosPropertySourceRefreshListener
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>, org.springframework.context.event.SmartApplicationListener, org.springframework.core.Ordered

public class NacosPropertySourceRefreshListener extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.event.SmartApplicationListener, org.springframework.context.ApplicationContextAware
  • Constructor Details

    • NacosPropertySourceRefreshListener

      public NacosPropertySourceRefreshListener(NacosConfigManager nacosConfigManager)
  • Method Details

    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • supportsEventType

      public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
      Specified by:
      supportsEventType in interface org.springframework.context.event.SmartApplicationListener
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • handle

      public void handle(org.springframework.boot.context.event.ApplicationReadyEvent event)
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
    • handle

      public void handle(NacosConfigRefreshEvent event)