Class 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 Detail

      • ConsulPropertySourceLocator

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

      • 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