Class ConfigTreeConfigDataLoader
java.lang.Object
org.springframework.boot.context.config.ConfigTreeConfigDataLoader
- All Implemented Interfaces:
ConfigDataLoader<ConfigTreeConfigDataResource>
public class ConfigTreeConfigDataLoader
extends Object
implements ConfigDataLoader<ConfigTreeConfigDataResource>
ConfigDataLoader
for config tree locations.- Since:
- 2.4.0
- Author:
- Madhura Bhave, Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionload
(ConfigDataLoaderContext context, ConfigTreeConfigDataResource resource) LoadConfigData
for the given resource.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.ConfigDataLoader
isLoadable
-
Constructor Details
-
ConfigTreeConfigDataLoader
public ConfigTreeConfigDataLoader()
-
-
Method Details
-
load
public ConfigData load(ConfigDataLoaderContext context, ConfigTreeConfigDataResource resource) throws IOException, ConfigDataResourceNotFoundException Description copied from interface:ConfigDataLoader
LoadConfigData
for the given resource.- Specified by:
load
in interfaceConfigDataLoader<ConfigTreeConfigDataResource>
- Parameters:
context
- the loader contextresource
- the resource to load- Returns:
- the loaded config data or
null
if the location should be skipped - Throws:
IOException
- on IO errorConfigDataResourceNotFoundException
- if the resource cannot be found
-