Class EnvironmentRepositoryPropertySourceLocator
java.lang.Object
org.springframework.cloud.config.server.environment.EnvironmentRepositoryPropertySourceLocator
- All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator
public class EnvironmentRepositoryPropertySourceLocator
extends Object
implements org.springframework.cloud.bootstrap.config.PropertySourceLocator
A PropertySourceLocator that reads from an EnvironmentRepository.
- Author:
- Dave Syer
-
Constructor Summary
ConstructorDescriptionEnvironmentRepositoryPropertySourceLocator
(EnvironmentRepository repository, String name, String profiles, String label) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.env.PropertySource<?>
locate
(org.springframework.core.env.Environment environment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.cloud.bootstrap.config.PropertySourceLocator
locateCollection
-
Constructor Details
-
EnvironmentRepositoryPropertySourceLocator
public EnvironmentRepositoryPropertySourceLocator(EnvironmentRepository repository, String name, String profiles, String label)
-
-
Method Details
-
locate
public org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment environment) - Specified by:
locate
in interfaceorg.springframework.cloud.bootstrap.config.PropertySourceLocator
-