Package io.microsphere.spring.boot.env
Class PropertySourceLoaders
- java.lang.Object
-
- io.microsphere.spring.boot.env.PropertySourceLoaders
-
- All Implemented Interfaces:
org.springframework.boot.env.PropertySourceLoader
public class PropertySourceLoaders extends java.lang.Object implements org.springframework.boot.env.PropertySourceLoader
The composite class ofPropertySourceLoader
with utilities features- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
PropertySourceLoader
-
-
Constructor Summary
Constructors Constructor Description PropertySourceLoaders()
PropertySourceLoaders(java.lang.ClassLoader classLoader)
PropertySourceLoaders(org.springframework.core.io.ResourceLoader resourceLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getFileExtensions()
java.util.List<org.springframework.core.env.PropertySource<?>>
load(java.lang.String name, org.springframework.core.io.Resource resource)
org.springframework.core.env.PropertySource<?>
loadAsOriginTracked(java.lang.String name, java.lang.String location)
Load thePropertySource
as an instance ofPropertySource
withOriginLookup
org.springframework.core.env.PropertySource<?>
reloadAsOriginTracked(org.springframework.core.env.PropertySource<?> propertySource)
Reload thePropertySource
as an instance ofPropertySource
withOriginLookup
-
-
-
Method Detail
-
getFileExtensions
public java.lang.String[] getFileExtensions()
- Specified by:
getFileExtensions
in interfaceorg.springframework.boot.env.PropertySourceLoader
-
load
public java.util.List<org.springframework.core.env.PropertySource<?>> load(java.lang.String name, org.springframework.core.io.Resource resource) throws java.io.IOException
- Specified by:
load
in interfaceorg.springframework.boot.env.PropertySourceLoader
- Throws:
java.io.IOException
-
reloadAsOriginTracked
public org.springframework.core.env.PropertySource<?> reloadAsOriginTracked(org.springframework.core.env.PropertySource<?> propertySource) throws java.io.IOException
Reload thePropertySource
as an instance ofPropertySource
withOriginLookup
- Parameters:
propertySource
-PropertySource
- Returns:
- an instance of
PropertySource
withOriginLookup
- Throws:
java.io.IOException
-
loadAsOriginTracked
public org.springframework.core.env.PropertySource<?> loadAsOriginTracked(java.lang.String name, java.lang.String location) throws java.io.IOException
Load thePropertySource
as an instance ofPropertySource
withOriginLookup
- Parameters:
name
- the name ofPropertySource
location
- the location ofResource
forPropertySource
- Returns:
- an instance of
PropertySource
withOriginLookup
- Throws:
java.io.IOException
-
-