Skip to content

Commit c5776c0

Browse files
committed
Make ImportHttpServiceRegistrar public
Make `ImportHttpServiceRegistrar` a public class and also allow subclasses to call `registerHttpServices(...)`. This update allows Spring Boot to reuse `ImportHttpServiceRegistrar` for convention based auto-configuration. See gh-
1 parent 3428dee commit c5776c0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

spring-web/src/main/java/org/springframework/web/service/registry/ImportHttpServiceRegistrar.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* @author Olga Maciaszek-Sharma
4848
* @since 7.0
4949
*/
50-
class ImportHttpServiceRegistrar extends AbstractHttpServiceRegistrar {
50+
public class ImportHttpServiceRegistrar extends AbstractHttpServiceRegistrar {
5151

5252
private @Nullable MetadataReaderFactory metadataReaderFactory;
5353

@@ -97,7 +97,15 @@ private ImportHttpServices.GroupProvider getGroupProvider(MergedAnnotation<?> an
9797
return (ImportHttpServices.GroupProvider) BeanUtils.instantiateClass(groupProvider);
9898
}
9999

100-
private void registerHttpServices(GroupRegistry groupRegistry,
100+
/**
101+
* Register HTTP service to given registry.
102+
* @param groupRegistry the group registry
103+
* @param groupProvider the group provider to use
104+
* @param clientType the client type to use
105+
* @param types the types to register
106+
* @param basePackages the base packages to register
107+
*/
108+
protected final void registerHttpServices(GroupRegistry groupRegistry,
101109
ImportHttpServices.GroupProvider groupProvider, ClientType clientType, Class<?>[] types,
102110
Class<?>[] basePackageClasses, String[] basePackages) {
103111

0 commit comments

Comments
 (0)