Class ZookeeperConfigDataLocationResolver
java.lang.Object
org.springframework.cloud.zookeeper.config.ZookeeperConfigDataLocationResolver
- All Implemented Interfaces:
org.springframework.boot.context.config.ConfigDataLocationResolver<ZookeeperConfigDataResource>
public class ZookeeperConfigDataLocationResolver
extends Object
implements org.springframework.boot.context.config.ConfigDataLocationResolver<ZookeeperConfigDataResource>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionZookeeperConfigDataLocationResolver(org.springframework.boot.logging.DeferredLogFactory logFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ZookeeperPropertySources.Context>getCustomContexts(org.springframework.web.util.UriComponents uriComponents) booleanisResolvable(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location) protected ZookeeperConfigPropertiesloadConfigProperties(org.springframework.boot.context.config.ConfigDataLocationResolverContext context) protected org.springframework.web.util.UriComponentsparseLocation(org.springframework.boot.context.config.ConfigDataLocation location) resolve(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location) resolveProfileSpecific(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location, org.springframework.boot.context.config.Profiles profiles)
-
Field Details
-
PREFIX
Zookeeper Config Data prefix.- See Also:
-
-
Constructor Details
-
ZookeeperConfigDataLocationResolver
public ZookeeperConfigDataLocationResolver(org.springframework.boot.logging.DeferredLogFactory logFactory)
-
-
Method Details
-
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<ZookeeperConfigDataResource>
-
resolve
public List<ZookeeperConfigDataResource> resolve(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location) throws org.springframework.boot.context.config.ConfigDataLocationNotFoundException - Specified by:
resolvein interfaceorg.springframework.boot.context.config.ConfigDataLocationResolver<ZookeeperConfigDataResource>- Throws:
org.springframework.boot.context.config.ConfigDataLocationNotFoundException
-
resolveProfileSpecific
public List<ZookeeperConfigDataResource> resolveProfileSpecific(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, 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<ZookeeperConfigDataResource>- Throws:
org.springframework.boot.context.config.ConfigDataLocationNotFoundException
-
getCustomContexts
protected List<ZookeeperPropertySources.Context> getCustomContexts(org.springframework.web.util.UriComponents uriComponents) -
parseLocation
@Nullable protected org.springframework.web.util.UriComponents parseLocation(org.springframework.boot.context.config.ConfigDataLocation location) -
loadConfigProperties
protected ZookeeperConfigProperties loadConfigProperties(org.springframework.boot.context.config.ConfigDataLocationResolverContext context)
-