Package io.micronaut.context.env
Interface BootstrapPropertySourceLocator
public interface BootstrapPropertySourceLocator
Allows blocking resolving of
PropertySource
from remote distributed configuration servers.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BootstrapPropertySourceLocator
An empty version that does nothing. -
Method Summary
Modifier and TypeMethodDescriptionfindPropertySources
(Environment environment) A blocking interface that will attempt to resolve either remote or localPropertySource
instances for the current Environment.
-
Field Details
-
EMPTY_LOCATOR
An empty version that does nothing.
-
-
Method Details
-
findPropertySources
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
-