Interface RefreshEventListener
- All Superinterfaces:
ApplicationEventListener<RefreshEvent>
,EventListener
,Ordered
- All Known Subinterfaces:
NettyEmbeddedServer
- All Known Implementing Classes:
CertificateProvidedSslBuilder
,DefaultNettyHttpClientRegistry
,NettyHttpServer
A convenience interface that can be implemented if a component needs to listen for
RefreshEvent
where the implementation is only interested in a limited set of configuration prefixes.- Since:
- 3.1.0
- Author:
- graemerocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default position as defined byOrdered.getOrder()
.Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptionReturns the set of observed configuration prefixes that the event listener should listen for.default int
getOrder()
default boolean
supports
(RefreshEvent event) Whether the given event is supported.Methods inherited from interface io.micronaut.context.event.ApplicationEventListener
onApplicationEvent
-
Field Details
-
DEFAULT_POSITION
static final int DEFAULT_POSITIONThe default position as defined byOrdered.getOrder()
.- See Also:
-
-
Method Details
-
supports
Description copied from interface:ApplicationEventListener
Whether the given event is supported.- Specified by:
supports
in interfaceApplicationEventListener<RefreshEvent>
- Parameters:
event
- The event- Returns:
- True if it is
-
getObservedConfigurationPrefixes
Returns the set of observed configuration prefixes that the event listener should listen for.- Returns:
- A set of prefixes
-
getOrder
default int getOrder()
-