Class StandardConfigDataLoader
java.lang.Object
org.springframework.boot.context.config.StandardConfigDataLoader
- All Implemented Interfaces:
- ConfigDataLoader<StandardConfigDataResource>
public class StandardConfigDataLoader
extends Object
implements ConfigDataLoader<StandardConfigDataResource>
ConfigDataLoader for Resource backed locations.- Since:
- 2.4.0
- Author:
- Phillip Webb, Madhura Bhave
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionload(ConfigDataLoaderContext context, StandardConfigDataResource resource) LoadConfigDatafor the given resource.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.context.config.ConfigDataLoaderisLoadable
- 
Constructor Details- 
StandardConfigDataLoaderpublic StandardConfigDataLoader()
 
- 
- 
Method Details- 
loadpublic ConfigData load(ConfigDataLoaderContext context, StandardConfigDataResource resource) throws IOException, ConfigDataNotFoundException Description copied from interface:ConfigDataLoaderLoadConfigDatafor the given resource.- Specified by:
- loadin interface- ConfigDataLoader<StandardConfigDataResource>
- Parameters:
- context- the loader context
- resource- the resource to load
- Returns:
- the loaded config data or nullif the location should be skipped
- Throws:
- IOException- on IO error
- ConfigDataResourceNotFoundException- if the resource cannot be found
- ConfigDataNotFoundException
 
 
-