public class UiEventListenerMethodAdapter
extends java.lang.Object
implements org.springframework.context.event.GenericApplicationListener
Constructor and Description |
---|
UiEventListenerMethodAdapter(java.lang.Object instance,
java.lang.Class<?> targetClass,
java.lang.reflect.Method method,
Events events) |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
processEvent(java.lang.Object instance,
org.springframework.context.ApplicationEvent event)
Process the specified
ApplicationEvent , checking if the condition match and handling non-null result, if any. |
boolean |
supportsEventType(org.springframework.core.ResolvableType eventType) |
boolean |
supportsSourceType(java.lang.Class<?> sourceType) |
public UiEventListenerMethodAdapter(java.lang.Object instance, java.lang.Class<?> targetClass, java.lang.reflect.Method method, Events events)
public boolean supportsEventType(org.springframework.core.ResolvableType eventType)
supportsEventType
in interface org.springframework.context.event.GenericApplicationListener
public boolean supportsSourceType(java.lang.Class<?> sourceType)
supportsSourceType
in interface org.springframework.context.event.GenericApplicationListener
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void processEvent(java.lang.Object instance, org.springframework.context.ApplicationEvent event)
ApplicationEvent
, checking if the condition match and handling non-null result, if any.