• Phillip Webb's avatar
    Improve ConfigData processing code · 1cf9fc10
    Phillip Webb authored
    Refactor `ConfigData` processing code to make it less awkward to
    follow.
    
    Prior to this commit the `ConfigDataLocationResolver` would take a
    String location and return a `ConfigDataLocation` instance. This was
    a little confusing since sometimes we would refer to `location` as the
    String value, and sometimes it would be the typed instance. We also
    had nowhere sensible to put the `optional:` prefix logic and we needed
    to pass a `boolean` parameter to a number of methods. The recently
    introduced `Orgin` support also didn't have a good home.
    
    To solve this, `ConfigDataLocation` has been renamed to
    `ConfigDataResource`. This frees up `ConfigDataLocation` to be used
    as a richer `location` type that holds the String value, the `Orgin`
    and provides a home for the `optional:` logic.
    
    This commit also cleans up a few other areas of the code, including
    renaming `ResourceConfigData...` to `StandardConfigData...`. It also
    introduces a new exception hierarchy for `ConfigDataNotFoundExceptions`.
    
    Closes gh-23711
    1cf9fc10
Name
Last commit
Last update
..
appendix-application-properties.adoc Loading commit data...
appendix-auto-configuration-classes.adoc Loading commit data...
appendix-configuration-metadata.adoc Loading commit data...
appendix-dependency-versions.adoc Loading commit data...
appendix-executable-jar-format.adoc Loading commit data...
appendix-test-auto-configuration.adoc Loading commit data...
attributes.adoc Loading commit data...
authors.adoc Loading commit data...
build-tool-plugins.adoc Loading commit data...
deployment.adoc Loading commit data...
documentation-overview.adoc Loading commit data...
getting-started.adoc Loading commit data...
howto.adoc Loading commit data...
index-docinfo.xml Loading commit data...
index.adoc Loading commit data...
index.singleadoc Loading commit data...
legal.adoc Loading commit data...
production-ready-features.adoc Loading commit data...
spring-boot-cli.adoc Loading commit data...
spring-boot-features.adoc Loading commit data...
using-spring-boot.adoc Loading commit data...