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
Modifier and TypeFieldDescriptionprotected String
The key in vault shared by all applications.protected int
protected @NotEmpty String
Vault profile separator.protected final org.springframework.beans.factory.ObjectProvider<javax.servlet.http.HttpServletRequest>
protected final EnvironmentWatch
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionAbstractVaultEnvironmentRepository
(org.springframework.beans.factory.ObjectProvider<javax.servlet.http.HttpServletRequest> request, EnvironmentWatch watch, VaultEnvironmentProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
protected abstract String
void
setDefaultKey
(String defaultKey) void
setOrder
(int order) void
setProfileSeparator
(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 Details
-
request
protected final org.springframework.beans.factory.ObjectProvider<javax.servlet.http.HttpServletRequest> request -
watch
-
defaultKey
The key in vault shared by all applications. Defaults to application. Set to empty to disable. -
profileSeparator
Vault profile separator. Defaults to comma. -
order
protected int order
-
-
Constructor Details
-
AbstractVaultEnvironmentRepository
public AbstractVaultEnvironmentRepository(org.springframework.beans.factory.ObjectProvider<javax.servlet.http.HttpServletRequest> request, EnvironmentWatch watch, VaultEnvironmentProperties properties)
-
-
Method Details
-
findOne
- Specified by:
findOne
in interfaceEnvironmentRepository
-
read
-
setDefaultKey
-
setProfileSeparator
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-