Class ConsulPropertySourceLocator
- java.lang.Object
-
- org.springframework.cloud.consul.config.ConsulPropertySourceLocator
-
- All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator,ConsulConfigIndexes
@Order(0) public class ConsulPropertySourceLocator extends Object implements org.springframework.cloud.bootstrap.config.PropertySourceLocator, ConsulConfigIndexes
- Author:
- Spencer Gibb
-
-
Constructor Summary
Constructors Constructor Description ConsulPropertySourceLocator(com.ecwid.consul.v1.ConsulClient consul, ConsulConfigProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<String>getContexts()Deprecated.LinkedHashMap<String,Long>getIndexes()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)
-
-
-
Constructor Detail
-
ConsulPropertySourceLocator
public ConsulPropertySourceLocator(com.ecwid.consul.v1.ConsulClient consul, ConsulConfigProperties properties)
-
-
Method Detail
-
getContexts
@Deprecated public List<String> getContexts()
Deprecated.
-
getIndexes
public LinkedHashMap<String,Long> getIndexes()
- Specified by:
getIndexesin interfaceConsulConfigIndexes
-
locateCollection
@Retryable(interceptor="consulRetryInterceptor") public Collection<org.springframework.core.env.PropertySource<?>> locateCollection(org.springframework.core.env.Environment environment)
- Specified by:
locateCollectionin interfaceorg.springframework.cloud.bootstrap.config.PropertySourceLocator
-
locate
@Retryable(interceptor="consulRetryInterceptor") public org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment environment)
- Specified by:
locatein interfaceorg.springframework.cloud.bootstrap.config.PropertySourceLocator
-
-