From b24f4edbec09484a51dc57a86308e5502b2fffba Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Thu, 10 Apr 2025 14:15:32 +0200 Subject: [PATCH] HttpServiceGroupConfigurer extends Ordered Closes gh-34739 Signed-off-by: Olga Maciaszek-Sharma --- .../service/registry/HttpServiceGroupConfigurer.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java b/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java index 92f22a15c37..3f2c8849dd2 100644 --- a/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java +++ b/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java @@ -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; * @param the type of client builder, i.e. {@code RestClient} or {@code WebClient} builder. */ @FunctionalInterface -public interface HttpServiceGroupConfigurer { +public interface HttpServiceGroupConfigurer extends Ordered { /** * Configure the underlying infrastructure for all group. */ void configureGroups(Groups groups); + /** + * Determine the order of this configurer relative to others. + *

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.