Class ConfigServicePropertySourceLocator
- java.lang.Object
-
- org.springframework.cloud.config.client.ConfigServicePropertySourceLocator
-
- All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator
@Order(0) public class ConfigServicePropertySourceLocator extends Object implements org.springframework.cloud.bootstrap.config.PropertySourceLocator
- Author:
- Dave Syer, Mathieu Ouellet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigServicePropertySourceLocator.GenericRequestHeaderInterceptorDeprecated.
-
Constructor Summary
Constructors Constructor Description ConfigServicePropertySourceLocator(ConfigClientProperties defaultProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.core.env.PropertySource<?>locate(org.springframework.core.env.Environment environment)Collection<org.springframework.core.env.PropertySource<?>>locateCollection(org.springframework.core.env.Environment environment)voidsetRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
-
-
-
Constructor Detail
-
ConfigServicePropertySourceLocator
public ConfigServicePropertySourceLocator(ConfigClientProperties defaultProperties)
-
-
Method Detail
-
locate
@Retryable(interceptor="configServerRetryInterceptor") public org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment environment)
- Specified by:
locatein interfaceorg.springframework.cloud.bootstrap.config.PropertySourceLocator
-
locateCollection
@Retryable(interceptor="configServerRetryInterceptor") public Collection<org.springframework.core.env.PropertySource<?>> locateCollection(org.springframework.core.env.Environment environment)
- Specified by:
locateCollectionin interfaceorg.springframework.cloud.bootstrap.config.PropertySourceLocator
-
setRestTemplate
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
-
-