Interface RefreshEventListener

All Superinterfaces:
io.micronaut.context.event.ApplicationEventListener<RefreshEvent>, 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 for RefreshEvent 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 final int
    The default position as defined by Ordered.getOrder().

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull Set<String>
    Returns the set of observed configuration prefixes that the event listener should listen for.
    default int
     
    default boolean
     

    Methods inherited from interface io.micronaut.context.event.ApplicationEventListener

    onApplicationEvent
  • Field Details

    • DEFAULT_POSITION

      static final int DEFAULT_POSITION
      The default position as defined by Ordered.getOrder().
      See Also:
  • Method Details

    • supports

      default boolean supports(RefreshEvent event)
      Specified by:
      supports in interface io.micronaut.context.event.ApplicationEventListener<RefreshEvent>
    • getObservedConfigurationPrefixes

      @NonNull @NonNull Set<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 interface io.micronaut.core.order.Ordered