Interface PropertySourceLocator
-
public interface PropertySourceLocatorStrategy for locating (possibly remote) property sources for the Environment. Implementations should not fail unless they intend to prevent the application from starting.- Author:
- Dave Syer
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.springframework.core.env.PropertySource<?>locate(org.springframework.core.env.Environment environment)static Collection<org.springframework.core.env.PropertySource<?>>locateCollection(PropertySourceLocator locator, org.springframework.core.env.Environment environment)default Collection<org.springframework.core.env.PropertySource<?>>locateCollection(org.springframework.core.env.Environment environment)
-
-
-
Method Detail
-
locate
org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment environment)
- Parameters:
environment- The current Environment.- Returns:
- A PropertySource, or null if there is none.
- Throws:
IllegalStateException- if there is a fail-fast condition.
-
locateCollection
default Collection<org.springframework.core.env.PropertySource<?>> locateCollection(org.springframework.core.env.Environment environment)
-
locateCollection
static Collection<org.springframework.core.env.PropertySource<?>> locateCollection(PropertySourceLocator locator, org.springframework.core.env.Environment environment)
-
-