Interface RefreshEventListener
-
- All Superinterfaces:
io.micronaut.context.event.ApplicationEventListener<RefreshEvent>
,java.util.EventListener
,io.micronaut.core.order.Ordered
public interface RefreshEventListener extends io.micronaut.context.event.ApplicationEventListener<RefreshEvent>, io.micronaut.core.order.Ordered
A convenience interface that can be implemented if a component needs to listen forRefreshEvent
where the implementation is only interested in a limited set of configuration prefixes.- Since:
- 3.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_POSITION
The default position as defined byOrdered.getOrder()
.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getObservedConfigurationPrefixes()
Returns the set of observed configuration prefixes that the event listener should listen for.default int
getOrder()
default boolean
supports(RefreshEvent event)
-
-
-
Field Detail
-
DEFAULT_POSITION
static final int DEFAULT_POSITION
The default position as defined byOrdered.getOrder()
.- See Also:
- Constant Field Values
-
-
Method Detail
-
supports
default boolean supports(RefreshEvent event)
- Specified by:
supports
in interfaceio.micronaut.context.event.ApplicationEventListener<RefreshEvent>
-
getObservedConfigurationPrefixes
@NonNull java.util.Set<java.lang.String> getObservedConfigurationPrefixes()
Returns the set of observed configuration prefixes that the event listener should listen for.- Returns:
- A set of prefixes
-
getOrder
default int getOrder()
- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-
-