Package com.elitesland.ystdms.sys.config
Class CustomSpringApplicationListener
java.lang.Object
com.elitesland.ystdms.sys.config.CustomSpringApplicationListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>,org.springframework.context.event.SmartApplicationListener,org.springframework.core.Ordered
public class CustomSpringApplicationListener
extends Object
implements org.springframework.context.event.SmartApplicationListener
Spring的上下文自动化配置类.
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.context.ApplicationEvent event) 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.context.event.SmartApplicationListener
getListenerId, getOrder, supportsSourceType
-
Constructor Details
-
CustomSpringApplicationListener
public CustomSpringApplicationListener()
-
-
Method Details
-
supportsEventType
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) - Specified by:
supportsEventTypein interfaceorg.springframework.context.event.SmartApplicationListener
-
onApplicationEvent
public void onApplicationEvent(@NonNull org.springframework.context.ApplicationEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-