Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.function.Consumer;
import java.util.function.Predicate;

import org.springframework.core.Ordered;
import org.springframework.web.service.invoker.HttpServiceProxyFactory;

/**
Expand All @@ -31,14 +32,23 @@
* @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 this configurer's order in the set of instantiated configurers.
* <p>The default implementation returns {@link #LOWEST_PRECEDENCE}.
*/
@Override
default int getOrder() {
return Ordered.LOWEST_PRECEDENCE;
}

/**
* Contract to help iterate and configure the set of groups.
* @param <CB> the type of client builder, i.e. {@code RestClient} or {@code WebClient} builder.
Expand Down