public final class ExecutableApplicationEventListener<T extends org.springframework.context.ApplicationEvent> extends Object implements org.springframework.context.event.SmartApplicationListener
Associate an executable with a Spring framework application event.
If the application event gets fired onApplicationEvent invokes the executable.
| Modifier and Type | Class and Description |
|---|---|
static class |
ExecutableApplicationEventListener.Builder<T extends org.springframework.context.ApplicationEvent> |
| Modifier and Type | Method and Description |
|---|---|
static <T extends org.springframework.context.ApplicationEvent> |
builder(Executable executable,
Class<T> supportedEventType) |
Executable |
getExecutable() |
int |
getOrder() |
Class<T> |
getSupportedEventType() |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
boolean |
supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) |
boolean |
supportsSourceType(Class<?> sourceType) |
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.Orderedpublic boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
supportsEventType in interface org.springframework.context.event.SmartApplicationListenerpublic boolean supportsSourceType(Class<?> sourceType)
supportsSourceType in interface org.springframework.context.event.SmartApplicationListenerpublic static <T extends org.springframework.context.ApplicationEvent> ExecutableApplicationEventListener.Builder<T> builder(Executable executable, Class<T> supportedEventType)
public Executable getExecutable()
public Class<T> getSupportedEventType()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.