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 Details

    • 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 Details

    • AbstractVaultEnvironmentRepository

      public AbstractVaultEnvironmentRepository(org.springframework.beans.factory.ObjectProvider<javax.servlet.http.HttpServletRequest> request, EnvironmentWatch watch, VaultEnvironmentProperties properties)
  • Method Details

    • findOne

      public Environment findOne(String application, String profile, String label)
      Specified by:
      findOne in interface EnvironmentRepository
    • read

      protected abstract String read(String key)
    • setDefaultKey

      public void setDefaultKey(String defaultKey)
    • setProfileSeparator

      public void setProfileSeparator(String profileSeparator)
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setOrder

      public void setOrder(int order)