Class ConfigServerConfigDataLocationResolver

  • All Implemented Interfaces:
    org.springframework.boot.context.config.ConfigDataLocationResolver<ConfigServerConfigDataResource>, org.springframework.core.Ordered

    public class ConfigServerConfigDataLocationResolver
    extends Object
    implements org.springframework.boot.context.config.ConfigDataLocationResolver<ConfigServerConfigDataResource>, org.springframework.core.Ordered
    • Constructor Detail

      • ConfigServerConfigDataLocationResolver

        public ConfigServerConfigDataLocationResolver​(org.apache.commons.logging.Log log)
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
      • loadProperties

        protected org.springframework.cloud.config.client.ConfigServerConfigDataLocationResolver.PropertyHolder loadProperties​(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
                                                                                                                               String uris)
      • getLog

        protected org.apache.commons.logging.Log getLog()
      • isResolvable

        public boolean isResolvable​(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
                                    org.springframework.boot.context.config.ConfigDataLocation location)
        Specified by:
        isResolvable in interface org.springframework.boot.context.config.ConfigDataLocationResolver<ConfigServerConfigDataResource>
      • getPrefix

        protected String getPrefix()
      • resolve

        public List<ConfigServerConfigDataResource> resolve​(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
                                                            org.springframework.boot.context.config.ConfigDataLocation location)
                                                     throws org.springframework.boot.context.config.ConfigDataLocationNotFoundException,
                                                            org.springframework.boot.context.config.ConfigDataResourceNotFoundException
        Specified by:
        resolve in interface org.springframework.boot.context.config.ConfigDataLocationResolver<ConfigServerConfigDataResource>
        Throws:
        org.springframework.boot.context.config.ConfigDataLocationNotFoundException
        org.springframework.boot.context.config.ConfigDataResourceNotFoundException
      • resolveProfileSpecific

        public List<ConfigServerConfigDataResource> resolveProfileSpecific​(org.springframework.boot.context.config.ConfigDataLocationResolverContext resolverContext,
                                                                           org.springframework.boot.context.config.ConfigDataLocation location,
                                                                           org.springframework.boot.context.config.Profiles profiles)
                                                                    throws org.springframework.boot.context.config.ConfigDataLocationNotFoundException
        Specified by:
        resolveProfileSpecific in interface org.springframework.boot.context.config.ConfigDataLocationResolver<ConfigServerConfigDataResource>
        Throws:
        org.springframework.boot.context.config.ConfigDataLocationNotFoundException