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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionConfigServerConfigDataLocationResolver
(org.springframework.boot.logging.DeferredLogFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.client.RestTemplate
createRestTemplate
(ConfigClientProperties properties) Deprecated.protected org.apache.commons.logging.Log
getLog()
int
getOrder()
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)
-
Field Details
-
PREFIX
Prefix for Config Server imports.- See Also:
-
-
Constructor Details
-
ConfigServerConfigDataLocationResolver
public ConfigServerConfigDataLocationResolver(org.springframework.boot.logging.DeferredLogFactory factory)
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in 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:
isResolvable
in interfaceorg.springframework.boot.context.config.ConfigDataLocationResolver<ConfigServerConfigDataResource>
-
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 interfaceorg.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 interfaceorg.springframework.boot.context.config.ConfigDataLocationResolver<ConfigServerConfigDataResource>
- Throws:
org.springframework.boot.context.config.ConfigDataLocationNotFoundException
-