Skip to content

Commit b24f4ed

Browse files
OlgaMaciaszekrstoyanchev
authored andcommitted
HttpServiceGroupConfigurer extends Ordered
Closes gh-34739 Signed-off-by: Olga Maciaszek-Sharma <[email protected]>
1 parent 4599ad4 commit b24f4ed

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceGroupConfigurer.java

+11-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.util.function.Consumer;
2121
import java.util.function.Predicate;
2222

23+
import org.springframework.core.Ordered;
2324
import org.springframework.web.service.invoker.HttpServiceProxyFactory;
2425

2526
/**
@@ -31,13 +32,22 @@
3132
* @param <CB> the type of client builder, i.e. {@code RestClient} or {@code WebClient} builder.
3233
*/
3334
@FunctionalInterface
34-
public interface HttpServiceGroupConfigurer<CB> {
35+
public interface HttpServiceGroupConfigurer<CB> extends Ordered {
3536

3637
/**
3738
* Configure the underlying infrastructure for all group.
3839
*/
3940
void configureGroups(Groups<CB> groups);
4041

42+
/**
43+
* Determine the order of this configurer relative to others.
44+
* <p>By default, this is {@link Ordered#LOWEST_PRECEDENCE}.
45+
*/
46+
@Override
47+
default int getOrder() {
48+
return Ordered.LOWEST_PRECEDENCE;
49+
}
50+
4151

4252
/**
4353
* Contract to help iterate and configure the set of groups.

0 commit comments

Comments
 (0)