Interface PropertySourceLocator
public interface PropertySourceLocator
Strategy 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
Modifier and TypeMethodDescriptionorg.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 Details
-
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)
-