Class ConfigServerConfigDataLocationResolver

java.lang.Object
org.springframework.cloud.config.client.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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Prefix for Config Server imports.

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConfigServerConfigDataLocationResolver(org.springframework.boot.logging.DeferredLogFactory factory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.web.client.RestTemplate
    Deprecated.
    protected org.apache.commons.logging.Log
     
    int
     
    protected String
     
    boolean
    isResolvable(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location)
     
    protected org.springframework.cloud.config.client.ConfigServerConfigDataLocationResolver.PropertyHolder
    loadProperties(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, String uris)
     
    resolve(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location)
     
    resolveProfileSpecific(org.springframework.boot.context.config.ConfigDataLocationResolverContext resolverContext, org.springframework.boot.context.config.ConfigDataLocation location, org.springframework.boot.context.config.Profiles profiles)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ConfigServerConfigDataLocationResolver

      public ConfigServerConfigDataLocationResolver(org.springframework.boot.logging.DeferredLogFactory factory)
  • Method Details

    • 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)
    • createRestTemplate

      @Deprecated protected org.springframework.web.client.RestTemplate createRestTemplate(ConfigClientProperties properties)
      Deprecated.
    • 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