Interface ServiceMatchingStrategy

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ServiceMatchingStrategy
Since:
6.1.0
  • Method Details

    • alwaysMatches

      static ServiceMatchingStrategy alwaysMatches()
      Always matches service matching strategy.
      Returns:
      the service matching strategy
    • neverMatches

      static ServiceMatchingStrategy neverMatches()
      Never matches service matching strategy.
      Returns:
      the service matching strategy
    • matches

      boolean matches(Service service, Service serviceToMatch)
      Determine whether a service matches another primarily used for validation events.
      Parameters:
      service - the service
      serviceToMatch - the match service
      Returns:
      true /false