Polish HTTP Service client auto-configuration

This commit is contained in:
Phillip Webb
2025-09-16 09:08:34 -07:00
parent 009bd441f6
commit 74a5d13fe9
2 changed files with 4 additions and 16 deletions
@@ -32,15 +32,12 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.web.client.ApiVersionFormatter;
import org.springframework.web.client.ApiVersionInserter;
import org.springframework.web.client.RestClient;
import org.springframework.web.client.support.RestClientAdapter;
import org.springframework.web.service.registry.HttpServiceProxyRegistry;
import org.springframework.web.service.registry.ImportHttpServices;
/**
* AutoConfiguration for Spring HTTP Service clients.
* <p>
* This will result in the creation of blocking HTTP Service client beans defined by
* {@link ImportHttpServices @ImportHttpServices} annotations.
* AutoConfiguration for Spring HTTP Service clients backed by {@link RestClient}.
*
* @author Olga Maciaszek-Sharma
* @author Rossen Stoyanchev
@@ -57,9 +54,6 @@ public final class HttpServiceClientAutoConfiguration implements BeanClassLoader
@SuppressWarnings("NullAway.Init")
private ClassLoader beanClassLoader;
HttpServiceClientAutoConfiguration() {
}
@Override
public void setBeanClassLoader(ClassLoader classLoader) {
this.beanClassLoader = classLoader;
@@ -31,15 +31,12 @@ import org.springframework.boot.webclient.autoconfigure.WebClientAutoConfigurati
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.ApiVersionFormatter;
import org.springframework.web.client.ApiVersionInserter;
import org.springframework.web.reactive.function.client.WebClient;
import org.springframework.web.reactive.function.client.support.WebClientAdapter;
import org.springframework.web.service.registry.HttpServiceProxyRegistry;
import org.springframework.web.service.registry.ImportHttpServices;
/**
* AutoConfiguration for Spring reactive HTTP Service Clients.
* <p>
* This will result in the creation of reactive HTTP Service client beans defined by
* {@link ImportHttpServices @ImportHttpServices} annotations.
* AutoConfiguration for Spring reactive HTTP Service Clients backed by {@link WebClient}.
*
* @author Olga Maciaszek-Sharma
* @author Rossen Stoyanchev
@@ -55,9 +52,6 @@ public final class ReactiveHttpServiceClientAutoConfiguration implements BeanCla
@SuppressWarnings("NullAway.Init")
private ClassLoader beanClassLoader;
ReactiveHttpServiceClientAutoConfiguration() {
}
@Override
public void setBeanClassLoader(ClassLoader classLoader) {
this.beanClassLoader = classLoader;