Class ConfigTreeConfigDataLocationResolver
java.lang.Object
org.springframework.boot.context.config.ConfigTreeConfigDataLocationResolver
- All Implemented Interfaces:
ConfigDataLocationResolver<ConfigTreeConfigDataResource>
public class ConfigTreeConfigDataLocationResolver
extends Object
implements ConfigDataLocationResolver<ConfigTreeConfigDataResource>
ConfigDataLocationResolver for config tree locations.- Since:
- 2.4.0
- Author:
- Madhura Bhave, Phillip Webb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisResolvable(ConfigDataLocationResolverContext context, ConfigDataLocation location) Returns if the specified location address can be resolved by this resolver.resolve(ConfigDataLocationResolverContext context, ConfigDataLocation location) Resolve aConfigDataLocationinto one or moreConfigDataResourceinstances.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.context.config.ConfigDataLocationResolver
resolveProfileSpecific
-
Constructor Details
-
ConfigTreeConfigDataLocationResolver
-
-
Method Details
-
isResolvable
Description copied from interface:ConfigDataLocationResolverReturns if the specified location address can be resolved by this resolver.- Specified by:
isResolvablein interfaceConfigDataLocationResolver<ConfigTreeConfigDataResource>- Parameters:
context- the location resolver contextlocation- the location to check.- Returns:
- if the location is supported by this resolver
-
resolve
public List<ConfigTreeConfigDataResource> resolve(ConfigDataLocationResolverContext context, ConfigDataLocation location) Description copied from interface:ConfigDataLocationResolverResolve aConfigDataLocationinto one or moreConfigDataResourceinstances.- Specified by:
resolvein interfaceConfigDataLocationResolver<ConfigTreeConfigDataResource>- Parameters:
context- the location resolver contextlocation- the location that should be resolved- Returns:
- a list of
resourcesin ascending priority order.
-