public class NacosConfigDataLocationResolver extends Object implements org.springframework.boot.context.config.ConfigDataLocationResolver<NacosConfigDataResource>, org.springframework.core.Ordered
ConfigDataLocationResolver, load Nacos
ConfigDataResource.| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX
Prefix for Config Server imports.
|
| Constructor and Description |
|---|
NacosConfigDataLocationResolver(org.springframework.boot.logging.DeferredLogFactory logFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.logging.Log |
getLog() |
int |
getOrder() |
protected String |
getPrefix() |
boolean |
isResolvable(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
org.springframework.boot.context.config.ConfigDataLocation location) |
protected NacosConfigProperties |
loadProperties(org.springframework.boot.context.config.ConfigDataLocationResolverContext context) |
List<NacosConfigDataResource> |
resolve(org.springframework.boot.context.config.ConfigDataLocationResolverContext context,
org.springframework.boot.context.config.ConfigDataLocation location) |
List<NacosConfigDataResource> |
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 NacosConfigDataLocationResolver(org.springframework.boot.logging.DeferredLogFactory logFactory)
public int getOrder()
getOrder in interface org.springframework.core.Orderedprotected NacosConfigProperties loadProperties(org.springframework.boot.context.config.ConfigDataLocationResolverContext context)
protected org.apache.commons.logging.Log getLog()
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<NacosConfigDataResource>protected String getPrefix()
public List<NacosConfigDataResource> 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
resolve in interface org.springframework.boot.context.config.ConfigDataLocationResolver<NacosConfigDataResource>org.springframework.boot.context.config.ConfigDataLocationNotFoundExceptionorg.springframework.boot.context.config.ConfigDataResourceNotFoundExceptionpublic List<NacosConfigDataResource> 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<NacosConfigDataResource>org.springframework.boot.context.config.ConfigDataLocationNotFoundExceptionCopyright © 2023 Pivotal Software, Inc.. All rights reserved.