Class NacosLoggingListener
java.lang.Object
com.alibaba.cloud.nacos.discovery.logging.NacosLoggingListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>,org.springframework.context.event.GenericApplicationListener,org.springframework.core.Ordered
public class NacosLoggingListener
extends Object
implements org.springframework.context.event.GenericApplicationListener
Reload nacos log configuration file, after
LoggingApplicationListener.- Author:
- mai.jh
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()voidonApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) booleansupportsEventType(org.springframework.core.ResolvableType resolvableType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.event.GenericApplicationListener
supportsSourceType
-
Constructor Details
-
NacosLoggingListener
public NacosLoggingListener()
-
-
Method Details
-
supportsEventType
public boolean supportsEventType(org.springframework.core.ResolvableType resolvableType) - Specified by:
supportsEventTypein interfaceorg.springframework.context.event.GenericApplicationListener
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.context.event.GenericApplicationListener- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-