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 Details

    • ConsulPropertySourceLocator

      public ConsulPropertySourceLocator(com.ecwid.consul.v1.ConsulClient consul, ConsulConfigProperties properties)
  • Method Details

    • getContexts

      @Deprecated public List<String> getContexts()
      Deprecated.
    • getIndexes

      public LinkedHashMap<String,Long> getIndexes()
      Specified by:
      getIndexes in interface ConsulConfigIndexes
    • locateCollection

      @Retryable(interceptor="consulRetryInterceptor") public Collection<org.springframework.core.env.PropertySource<?>> locateCollection(org.springframework.core.env.Environment environment)
      Specified by:
      locateCollection in interface org.springframework.cloud.bootstrap.config.PropertySourceLocator
    • locate

      @Retryable(interceptor="consulRetryInterceptor") public org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment environment)
      Specified by:
      locate in interface org.springframework.cloud.bootstrap.config.PropertySourceLocator