ConfigDataLocationResolver Type — spring-boot Architecture
Architecture documentation for the ConfigDataLocationResolver type/interface in ConfigDataLocationResolver.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolver.java lines 55–95
public interface ConfigDataLocationResolver<R extends ConfigDataResource> {
/**
* Returns if the specified location address can be resolved by this resolver.
* @param context the location resolver context
* @param location the location to check.
* @return if the location is supported by this resolver
*/
boolean isResolvable(ConfigDataLocationResolverContext context, ConfigDataLocation location);
/**
* Resolve a {@link ConfigDataLocation} into one or more {@link ConfigDataResource}
* instances.
* @param context the location resolver context
* @param location the location that should be resolved
* @return a list of {@link ConfigDataResource resources} in ascending priority order.
* @throws ConfigDataLocationNotFoundException on a non-optional location that cannot
* be found
* @throws ConfigDataResourceNotFoundException if a resolved resource cannot be found
*/
List<R> resolve(ConfigDataLocationResolverContext context, ConfigDataLocation location)
throws ConfigDataLocationNotFoundException, ConfigDataResourceNotFoundException;
/**
* Resolve a {@link ConfigDataLocation} into one or more {@link ConfigDataResource}
* instances based on available profiles. This method is called once profiles have
* been deduced from the contributed values. By default this method returns an empty
* list.
* @param context the location resolver context
* @param location the location that should be resolved
* @param profiles profile information
* @return a list of resolved locations in ascending priority order.
* @throws ConfigDataLocationNotFoundException on a non-optional location that cannot
* be found
*/
default List<R> resolveProfileSpecific(ConfigDataLocationResolverContext context, ConfigDataLocation location,
Profiles profiles) throws ConfigDataLocationNotFoundException {
return Collections.emptyList();
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free