public class ConsulConfigDataLocationResolver extends Object implements org.springframework.boot.context.config.ConfigDataLocationResolver<ConsulConfigDataResource>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ConsulConfigDataLocationResolver.ConsulConfigDataIndexes |
| Modifier and Type | Field and Description |
|---|---|
protected static List<String> |
DIR_SUFFIXES |
protected static List<String> |
FILES_SUFFIXES |
static String |
PREFIX
Consul ConfigData prefix.
|
| Constructor and Description |
|---|
ConsulConfigDataLocationResolver(org.apache.commons.logging.Log log) |
| Modifier and Type | Method and Description |
|---|---|
protected com.ecwid.consul.v1.ConsulClient |
createConsulClient(org.springframework.boot.BootstrapContext context) |
protected List<String> |
getSuffixes(ConsulConfigProperties properties) |
boolean |
isResolvable(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
org.springframework.boot.context.config.ConfigDataLocation location) |
protected ConsulConfigProperties |
loadConfigProperties(org.springframework.boot.context.config.ConfigDataLocationResolverContext resolverContext) |
protected ConsulProperties |
loadProperties(org.springframework.boot.context.config.ConfigDataLocationResolverContext resolverContext,
org.springframework.web.util.UriComponents location) |
protected org.springframework.web.util.UriComponents |
parseLocation(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
org.springframework.boot.context.config.ConfigDataLocation location) |
protected <T> void |
registerAndPromoteBean(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
Class<T> type,
org.springframework.boot.BootstrapRegistry.InstanceSupplier<T> supplier) |
protected <T> void |
registerBean(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
Class<T> type,
org.springframework.boot.BootstrapRegistry.InstanceSupplier<T> supplier) |
<T> void |
registerBean(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
Class<T> type,
T instance) |
List<ConsulConfigDataResource> |
resolve(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
org.springframework.boot.context.config.ConfigDataLocation location) |
List<ConsulConfigDataResource> |
resolveProfileSpecific(org.springframework.boot.context.config.ConfigDataLocationResolverContext resolverContext,
org.springframework.boot.context.config.ConfigDataLocation location,
org.springframework.boot.context.config.Profiles profiles) |
public static final String PREFIX
public ConsulConfigDataLocationResolver(org.apache.commons.logging.Log log)
public boolean isResolvable(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
org.springframework.boot.context.config.ConfigDataLocation location)
isResolvable in interface org.springframework.boot.context.config.ConfigDataLocationResolver<ConsulConfigDataResource>public List<ConsulConfigDataResource> resolve(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location) throws org.springframework.boot.context.config.ConfigDataLocationNotFoundException
resolve in interface org.springframework.boot.context.config.ConfigDataLocationResolver<ConsulConfigDataResource>org.springframework.boot.context.config.ConfigDataLocationNotFoundExceptionpublic List<ConsulConfigDataResource> 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
resolveProfileSpecific in interface org.springframework.boot.context.config.ConfigDataLocationResolver<ConsulConfigDataResource>org.springframework.boot.context.config.ConfigDataLocationNotFoundExceptionprotected List<String> getSuffixes(ConsulConfigProperties properties)
@Nullable
protected org.springframework.web.util.UriComponents parseLocation(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
org.springframework.boot.context.config.ConfigDataLocation location)
protected <T> void registerAndPromoteBean(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
Class<T> type,
org.springframework.boot.BootstrapRegistry.InstanceSupplier<T> supplier)
public <T> void registerBean(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
Class<T> type,
T instance)
protected <T> void registerBean(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
Class<T> type,
org.springframework.boot.BootstrapRegistry.InstanceSupplier<T> supplier)
protected com.ecwid.consul.v1.ConsulClient createConsulClient(org.springframework.boot.BootstrapContext context)
protected ConsulProperties loadProperties(org.springframework.boot.context.config.ConfigDataLocationResolverContext resolverContext, org.springframework.web.util.UriComponents location)
protected ConsulConfigProperties loadConfigProperties(org.springframework.boot.context.config.ConfigDataLocationResolverContext resolverContext)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.