Package | Description |
---|---|
org.springframework.boot.context.config |
External configuration support allowing 'application.properties' to be loaded and used
within a Spring Boot application.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigDataLoader<L extends ConfigDataLocation>
Strategy class that can be used used to load
ConfigData instances from a
location . |
interface |
ConfigDataLocationResolver<L extends ConfigDataLocation>
Strategy interface used to resolve
locations from a String
based location address. |
Modifier and Type | Method and Description |
---|---|
ConfigDataLocation |
InvalidConfigDataPropertyException.getLocation()
Return the
ConfigDataLocation of the invalid property or null if
the source was not loaded from ConfigData . |
ConfigDataLocation |
InactiveConfigDataAccessException.getLocation()
Return the
ConfigDataLocation of the property source or null if the
source was not loaded from ConfigData . |
ConfigDataLocation |
ConfigDataLocationNotFoundException.getLocation()
Return the location that could not be found.
|
ConfigDataLocation |
ConfigDataLocationResolverContext.getParent()
Provides access to the parent location that triggered the resolve or
null
if there is no available parent. |
Modifier and Type | Method and Description |
---|---|
static void |
ConfigDataLocationNotFoundException.throwIfDoesNotExist(ConfigDataLocation location,
File file)
Throw a
ConfigDataLocationNotFoundException if the specified File
does not exist. |
static void |
ConfigDataLocationNotFoundException.throwIfDoesNotExist(ConfigDataLocation location,
Path path)
Throw a
ConfigDataLocationNotFoundException if the specified Path
does not exist. |
static void |
ConfigDataLocationNotFoundException.throwIfDoesNotExist(ConfigDataLocation location,
Resource resource)
Throw a
ConfigDataLocationNotFoundException if the specified
Resource does not exist. |
Constructor and Description |
---|
ConfigDataLocationNotFoundException(ConfigDataLocation location)
Create a new
ConfigDataLocationNotFoundException instance. |
ConfigDataLocationNotFoundException(ConfigDataLocation location,
Throwable cause)
Create a new
ConfigDataLocationNotFoundException instance. |
ConfigDataLocationNotFoundException(String message,
ConfigDataLocation location)
Create a new
ConfigDataLocationNotFoundException instance. |
ConfigDataLocationNotFoundException(String message,
ConfigDataLocation location,
Throwable cause)
Create a new
ConfigDataLocationNotFoundException instance. |