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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isResolvable
(ConfigDataLocationResolverContext context, ConfigDataLocation location) Returns if the specified location address can be resolved by this resolver.resolve
(ConfigDataLocationResolverContext context, ConfigDataLocation location) Resolve aConfigDataLocation
into one or moreConfigDataResource
instances.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.context.config.ConfigDataLocationResolver
resolveProfileSpecific
-
Constructor Details
-
ConfigTreeConfigDataLocationResolver
-
-
Method Details
-
isResolvable
Description copied from interface:ConfigDataLocationResolver
Returns if the specified location address can be resolved by this resolver.- Specified by:
isResolvable
in 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:ConfigDataLocationResolver
Resolve aConfigDataLocation
into one or moreConfigDataResource
instances.- Specified by:
resolve
in interfaceConfigDataLocationResolver<ConfigTreeConfigDataResource>
- Parameters:
context
- the location resolver contextlocation
- the location that should be resolved- Returns:
- a list of
resources
in ascending priority order.
-