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
ConstructorsConstructorDescriptionConsulPropertySourceLocator(com.ecwid.consul.v1.ConsulClient consul, ConsulConfigProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.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 Details
-
ConsulPropertySourceLocator
public ConsulPropertySourceLocator(com.ecwid.consul.v1.ConsulClient consul, ConsulConfigProperties properties)
-
-
Method Details
-
getContexts
Deprecated. -
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
-