Package io.micronaut.context.event
Interface ApplicationEventListener<E>
-
- Type Parameters:
E
- An event
- All Superinterfaces:
java.util.EventListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Indexed(ApplicationEventListener.class) @FunctionalInterface public interface ApplicationEventListener<E> extends java.util.EventListener
An interface for receivers of application events.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
onApplicationEvent(E event)
Handle an application event.default boolean
supports(E event)
Whether the given event is supported.
-