Class AbstractVaultEnvironmentRepository
- java.lang.Object
-
- org.springframework.cloud.config.server.environment.AbstractVaultEnvironmentRepository
-
- All Implemented Interfaces:
EnvironmentRepository,org.springframework.core.Ordered
- Direct Known Subclasses:
SpringVaultEnvironmentRepository,VaultEnvironmentRepository
public abstract class AbstractVaultEnvironmentRepository extends Object implements EnvironmentRepository, org.springframework.core.Ordered
- Author:
- Spencer Gibb, Mark Paluch, Haroun Pacquee, Haytham Mohamed, Scott Frederick
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdefaultKeyThe key in vault shared by all applications.protected intorderprotected @NotEmpty StringprofileSeparatorVault profile separator.protected org.springframework.beans.factory.ObjectProvider<javax.servlet.http.HttpServletRequest>requestprotected EnvironmentWatchwatch
-
Constructor Summary
Constructors Constructor Description AbstractVaultEnvironmentRepository(org.springframework.beans.factory.ObjectProvider<javax.servlet.http.HttpServletRequest> request, EnvironmentWatch watch, VaultEnvironmentProperties properties)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description EnvironmentfindOne(String application, String profile, String label)intgetOrder()protected abstract Stringread(String key)voidsetDefaultKey(String defaultKey)voidsetOrder(int order)voidsetProfileSeparator(String profileSeparator)-
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.config.server.environment.EnvironmentRepository
findOne
-
-
-
-
Field Detail
-
request
protected final org.springframework.beans.factory.ObjectProvider<javax.servlet.http.HttpServletRequest> request
-
watch
protected final EnvironmentWatch watch
-
defaultKey
protected String defaultKey
The key in vault shared by all applications. Defaults to application. Set to empty to disable.
-
profileSeparator
@NotEmpty protected @NotEmpty String profileSeparator
Vault profile separator. Defaults to comma.
-
order
protected int order
-
-
Constructor Detail
-
AbstractVaultEnvironmentRepository
public AbstractVaultEnvironmentRepository(org.springframework.beans.factory.ObjectProvider<javax.servlet.http.HttpServletRequest> request, EnvironmentWatch watch, VaultEnvironmentProperties properties)
-
-
Method Detail
-
findOne
public Environment findOne(String application, String profile, String label)
- Specified by:
findOnein interfaceEnvironmentRepository
-
setDefaultKey
public void setDefaultKey(String defaultKey)
-
setProfileSeparator
public void setProfileSeparator(String profileSeparator)
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
-