Package io.micronaut.context.env
Interface BootstrapPropertySourceLocator
-
public interface BootstrapPropertySourceLocator
Allows blocking resolving ofPropertySource
from remote distributed configuration servers.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static BootstrapPropertySourceLocator
EMPTY_LOCATOR
An empty version that does nothing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Iterable<PropertySource>
findPropertySources(Environment environment)
A blocking interface that will attempt to resolve either remote or localPropertySource
instances for the current Environment.
-
-
-
Field Detail
-
EMPTY_LOCATOR
static final BootstrapPropertySourceLocator EMPTY_LOCATOR
An empty version that does nothing.
-
-
Method Detail
-
findPropertySources
java.lang.Iterable<PropertySource> findPropertySources(Environment environment) throws ConfigurationException
A blocking interface that will attempt to resolve either remote or localPropertySource
instances for the current Environment.- Parameters:
environment
- The environment- Returns:
- An iterable of
PropertySource
- Throws:
ConfigurationException
- If the resolve fails and fail fast is set to true
-
-