org.springframework.context.event

Interface GenericApplicationListener

    • Method Detail

      • supportsEventType

        boolean supportsEventType(ResolvableType eventType)
        Determine whether this listener actually supports the given event type.
        Parameters:
        eventType - the event type (never null)
      • supportsSourceType

        default boolean supportsSourceType(@Nullable
                                           java.lang.Class<?> sourceType)
        Determine whether this listener actually supports the given source type.

        The default implementation always returns true.

        Parameters:
        sourceType - the source type, or null if no source