Package com.alibaba.cloud.nacos.refresh
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
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(NacosConfigRefreshEvent event) voidhandle(org.springframework.boot.context.event.ApplicationReadyEvent event) voidonApplicationEvent(org.springframework.context.ApplicationEvent event) postProcessBeforeInitialization(Object bean, String beanName) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) booleansupportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitializationMethods inherited from interface org.springframework.context.event.SmartApplicationListener
getListenerId, getOrder, supportsSourceType
-
Constructor Details
-
NacosPropertySourceRefreshListener
-
-
Method Details
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
supportsEventType
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) - Specified by:
supportsEventTypein interfaceorg.springframework.context.event.SmartApplicationListener
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.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:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-
handle
-