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
-
-
Constructor Summary
Constructors Constructor Description ConfigServerConfigDataLocationResolver(org.apache.commons.logging.Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.springframework.web.client.RestTemplatecreateRestTemplate(ConfigClientProperties properties)Deprecated.protected org.apache.commons.logging.LoggetLog()intgetOrder()protected StringgetPrefix()booleanisResolvable(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location)protected org.springframework.cloud.config.client.ConfigServerConfigDataLocationResolver.PropertyHolderloadProperties(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, String uris)List<ConfigServerConfigDataResource>resolve(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location)List<ConfigServerConfigDataResource>resolveProfileSpecific(org.springframework.boot.context.config.ConfigDataLocationResolverContext resolverContext, org.springframework.boot.context.config.ConfigDataLocation location, org.springframework.boot.context.config.Profiles profiles)
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
Prefix for Config Server imports.- See Also:
- Constant Field Values
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.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:
isResolvablein interfaceorg.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:
resolvein interfaceorg.springframework.boot.context.config.ConfigDataLocationResolver<ConfigServerConfigDataResource>- Throws:
org.springframework.boot.context.config.ConfigDataLocationNotFoundExceptionorg.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:
resolveProfileSpecificin interfaceorg.springframework.boot.context.config.ConfigDataLocationResolver<ConfigServerConfigDataResource>- Throws:
org.springframework.boot.context.config.ConfigDataLocationNotFoundException
-
-