Package io.micronaut.context.event
Interface ApplicationEventListener<E>
- Type Parameters:
E
- An event
- All Superinterfaces:
EventListener
- All Known Subinterfaces:
NettyEmbeddedServer
,RefreshEventListener
,RetryEventListener
- All Known Implementing Classes:
AutoRegistration
,CertificateProvidedSslBuilder
,DefaultNettyHttpClientRegistry
,FileWatchRestartListener
,HeartbeatTask
,NettyHttpServer
,RefreshScope
- 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 EventListener
An interface for receivers of application events.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(E event) Handle an application event.default boolean
Whether the given event is supported.
-
Method Details
-
onApplicationEvent
Handle an application event.- Parameters:
event
- the event to respond to
-
supports
Whether the given event is supported.- Parameters:
event
- The event- Returns:
- True if it is
-