Browse Source

HttpServiceGroupConfigurer extends Ordered

Closes gh-34739

Signed-off-by: Olga Maciaszek-Sharma <olga.maciaszek-sharma@broadcom.com>
pull/34769/head
Olga Maciaszek-Sharma 8 months ago committed by rstoyanchev
parent
commit
b24f4edbec
  1. 12
      spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java

12
spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java

@ -20,6 +20,7 @@ import java.util.function.BiConsumer; @@ -20,6 +20,7 @@ import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Predicate;
import org.springframework.core.Ordered;
import org.springframework.web.service.invoker.HttpServiceProxyFactory;
/**
@ -31,13 +32,22 @@ import org.springframework.web.service.invoker.HttpServiceProxyFactory; @@ -31,13 +32,22 @@ import org.springframework.web.service.invoker.HttpServiceProxyFactory;
* @param <CB> the type of client builder, i.e. {@code RestClient} or {@code WebClient} builder.
*/
@FunctionalInterface
public interface HttpServiceGroupConfigurer<CB> {
public interface HttpServiceGroupConfigurer<CB> extends Ordered {
/**
* Configure the underlying infrastructure for all group.
*/
void configureGroups(Groups<CB> groups);
/**
* Determine the order of this configurer relative to others.
* <p>By default, this is {@link Ordered#LOWEST_PRECEDENCE}.
*/
@Override
default int getOrder() {
return Ordered.LOWEST_PRECEDENCE;
}
/**
* Contract to help iterate and configure the set of groups.

Loading…
Cancel
Save