diff --git a/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceProxyRegistry.java b/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceProxyRegistry.java index fcc121871b..d4635bca99 100644 --- a/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceProxyRegistry.java +++ b/spring-web/src/main/java/org/springframework/web/service/registry/HttpServiceProxyRegistry.java @@ -19,7 +19,7 @@ package org.springframework.web.service.registry; import java.util.Set; /** - * A registry that contains HTTP Service client proxies. + * A registry for HTTP service clients organized by {@link HttpServiceGroup}. * * @author Rossen Stoyanchev * @author Olga Maciaszek-Sharma @@ -30,24 +30,23 @@ import java.util.Set; public interface HttpServiceProxyRegistry { /** - * Return an HTTP service client proxy from any group as long as there is - * only one client proxy of the given type across all groups. - * @param httpServiceType the type of client proxy - * @return the proxy, or {@code null} if not found - * @param
the type of HTTP Interface client proxy - * @throws IllegalArgumentException if there is no client proxy of the given - * type, or there is more than one client proxy of the given type + * Return an HTTP service client from any group as long as there is only one + * client of this type across all groups. + * @param httpServiceType the type of client + * @param
the type of HTTP interface client + * @return the matched client + * @throws IllegalArgumentException if there is no client of the given type, + * or there is more than one client of the given type. */
P getClient(Class
httpServiceType); /** - * Return an HTTP service client proxy from the given group. + * Return an HTTP service client from the named group. * @param groupName the name of the group - * @param httpServiceType the type of client proxy - * @return the proxy, or {@code null} if not found - * @throws IllegalArgumentException if there is no group with the given - * name, or no client proxy of the given type in the group - * @param
the type of HTTP Interface client proxy + * @param httpServiceType the type of client + * @param
the type of HTTP interface client + * @return the matched client + * @throws IllegalArgumentException if there is no matching client. */
P getClient(String groupName, Class
httpServiceType);
@@ -57,10 +56,10 @@ public interface HttpServiceProxyRegistry {
Set