Class VaultConfigDataLoader

java.lang.Object
org.springframework.cloud.vault.config.VaultConfigDataLoader
All Implemented Interfaces:
org.springframework.boot.context.config.ConfigDataLoader<VaultConfigLocation>

public class VaultConfigDataLoader extends Object implements org.springframework.boot.context.config.ConfigDataLoader<VaultConfigLocation>
ConfigDataLoader for Vault for VaultConfigLocation. This class materializes property sources by using Vault and VaultConfigLocation. This class also ensures that all necessary infrastructure beans are registered in the BootstrapRegistry. Registrations made by this config data loader are typically propagated into the BeanFactory as this configuration mirrors to some extent VaultAutoConfiguration and VaultReactiveAutoConfiguration.

Infrastructure beans can be customized by registering instances through BootstrapRegistryInitializer.

Since:
3.0
Author:
Mark Paluch
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    VaultConfigDataLoader(org.springframework.boot.logging.DeferredLogFactory logFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.boot.context.config.ConfigData
    load(org.springframework.boot.context.config.ConfigDataLoaderContext context, VaultConfigLocation location)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.boot.context.config.ConfigDataLoader

    isLoadable
  • Constructor Details

    • VaultConfigDataLoader

      public VaultConfigDataLoader(org.springframework.boot.logging.DeferredLogFactory logFactory)
  • Method Details

    • load

      public org.springframework.boot.context.config.ConfigData load(org.springframework.boot.context.config.ConfigDataLoaderContext context, VaultConfigLocation location) throws org.springframework.boot.context.config.ConfigDataLocationNotFoundException
      Specified by:
      load in interface org.springframework.boot.context.config.ConfigDataLoader<VaultConfigLocation>
      Throws:
      org.springframework.boot.context.config.ConfigDataLocationNotFoundException