Uses of Class
org.springframework.boot.context.config.ConfigDataResource
Package
Description
External configuration support allowing 'application.properties' to be loaded and used
within a Spring Boot application.
-
Uses of ConfigDataResource in org.springframework.boot.context.config
Modifier and TypeInterfaceDescriptioninterface
ConfigDataLoader<R extends ConfigDataResource>
Strategy class that can be used to loadConfigData
for a givenConfigDataResource
.interface
ConfigDataLocationResolver<R extends ConfigDataResource>
Modifier and TypeClassDescriptionclass
ConfigDataResource
backed by a config tree directory.class
ConfigDataResource
backed by aResource
.Modifier and TypeMethodDescriptionInactiveConfigDataAccessException.getLocation()
Return theConfigDataResource
of the property source ornull
if the source was not loaded fromConfigData
.InvalidConfigDataPropertyException.getLocation()
Return theConfigDataResource
of the invalid property ornull
if the source was not loaded fromConfigData
.ConfigDataLocationResolverContext.getParent()
Provides access to the parentConfigDataResource
that triggered the resolve ornull
if there is no available parent.ConfigDataResourceNotFoundException.getResource()
Return the resource that could not be found.Modifier and TypeMethodDescriptiondefault void
ConfigDataEnvironmentUpdateListener.onPropertySourceAdded
(PropertySource<?> propertySource, ConfigDataLocation location, ConfigDataResource resource) Called when a newPropertySource
is added to theEnvironment
.static void
ConfigDataResourceNotFoundException.throwIfDoesNotExist
(ConfigDataResource resource, File fileToCheck) Throw aConfigDataNotFoundException
if the specifiedFile
does not exist.static void
ConfigDataResourceNotFoundException.throwIfDoesNotExist
(ConfigDataResource resource, Path pathToCheck) Throw aConfigDataNotFoundException
if the specifiedPath
does not exist.static void
ConfigDataResourceNotFoundException.throwIfDoesNotExist
(ConfigDataResource resource, Resource resourceToCheck) Throw aConfigDataNotFoundException
if the specifiedResource
does not exist.ModifierConstructorDescriptionCreate a newConfigDataResourceNotFoundException
instance.ConfigDataResourceNotFoundException
(ConfigDataResource resource, Throwable cause) Create a newConfigDataResourceNotFoundException
instance.