Class AbstractClientHttpServiceRegistrar
java.lang.Object
org.springframework.web.service.registry.AbstractHttpServiceRegistrar
org.springframework.web.service.registry.AbstractClientHttpServiceRegistrar
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,ImportBeanDefinitionRegistrar
,EnvironmentAware
,ResourceLoaderAware
Base class for an HTTP Service registrar that detects
@HttpServiceClient
annotated interfaces and
registers them.
Subclasses need to implement
AbstractHttpServiceRegistrar.registerHttpServices(GroupRegistry, AnnotationMetadata)
and invoke
findAndRegisterHttpServiceClients(GroupRegistry, List)
with the
list of base packages to scan.
- Since:
- 7.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.web.service.registry.AbstractHttpServiceRegistrar
AbstractHttpServiceRegistrar.GroupRegistry
-
Field Summary
Fields inherited from class org.springframework.web.service.registry.AbstractHttpServiceRegistrar
HTTP_SERVICE_PROXY_REGISTRY_BEAN_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
findAndRegisterHttpServiceClients
(AbstractHttpServiceRegistrar.GroupRegistry registry, List<String> basePackages) Find all HTTP Services under the given base packages that also have an@HttpServiceClient
annotation, and register them in the group specified on the annotation.Methods inherited from class org.springframework.web.service.registry.AbstractHttpServiceRegistrar
findHttpServices, registerBeanDefinitions, registerBeanDefinitions, registerHttpServices, setBeanClassLoader, setBeanFactory, setDefaultClientType, setEnvironment, setResourceLoader
-
Constructor Details
-
AbstractClientHttpServiceRegistrar
public AbstractClientHttpServiceRegistrar()
-
-
Method Details
-
findAndRegisterHttpServiceClients
protected void findAndRegisterHttpServiceClients(AbstractHttpServiceRegistrar.GroupRegistry registry, List<String> basePackages) Find all HTTP Services under the given base packages that also have an@HttpServiceClient
annotation, and register them in the group specified on the annotation.- Parameters:
registry
- the registry fromAbstractHttpServiceRegistrar.registerHttpServices(GroupRegistry, AnnotationMetadata)
basePackages
- the base packages to scan
-