Interface RefreshEventListener

All Superinterfaces:
ApplicationEventListener<RefreshEvent>, EventListener, Ordered
All Known Subinterfaces:
NettyEmbeddedServer
All Known Implementing Classes:
CertificateProvidedSslBuilder, DefaultNettyHttpClientRegistry, NettyHttpServer

public interface RefreshEventListener extends ApplicationEventListener<RefreshEvent>, 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
Author:
graemerocher
  • Field Details

  • Method Details

    • supports

      default boolean supports(RefreshEvent event)
      Description copied from interface: ApplicationEventListener
      Whether the given event is supported.
      Specified by:
      supports in interface ApplicationEventListener<RefreshEvent>
      Parameters:
      event - The event
      Returns:
      True if it is
    • 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 Ordered
      Returns:
      The order of the object. Defaults to zero (no order).