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 Object
implements org.springframework.boot.env.PropertySourceLoader
The composite class of
PropertySourceLoader
with utilities features- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
PropertySourceLoader
-
Constructor Summary
ConstructorsConstructorDescriptionPropertySourceLoaders
(ClassLoader classLoader) PropertySourceLoaders
(org.springframework.core.io.ResourceLoader resourceLoader) -
Method Summary
Modifier and TypeMethodDescriptionString[]
List<org.springframework.core.env.PropertySource<?>>
org.springframework.core.env.PropertySource<?>
loadAsOriginTracked
(String name, 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
-
Constructor Details
-
PropertySourceLoaders
public PropertySourceLoaders() -
PropertySourceLoaders
-
PropertySourceLoaders
public PropertySourceLoaders(org.springframework.core.io.ResourceLoader resourceLoader)
-
-
Method Details
-
getFileExtensions
- Specified by:
getFileExtensions
in interfaceorg.springframework.boot.env.PropertySourceLoader
-
load
public List<org.springframework.core.env.PropertySource<?>> load(String name, org.springframework.core.io.Resource resource) throws IOException - Specified by:
load
in interfaceorg.springframework.boot.env.PropertySourceLoader
- Throws:
IOException
-
reloadAsOriginTracked
public org.springframework.core.env.PropertySource<?> reloadAsOriginTracked(org.springframework.core.env.PropertySource<?> propertySource) throws IOException Reload thePropertySource
as an instance ofPropertySource
withOriginLookup
- Parameters:
propertySource
-PropertySource
- Returns:
- an instance of
PropertySource
withOriginLookup
- Throws:
IOException
-
loadAsOriginTracked
public org.springframework.core.env.PropertySource<?> loadAsOriginTracked(String name, String location) throws 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:
IOException
-