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>
ConfigDataLoaderfor Vault forVaultConfigLocation. This class materializesproperty sourcesby using Vault andVaultConfigLocation. This class also ensures that all necessary infrastructure beans are registered in theBootstrapRegistry. Registrations made by this config data loader are typically propagated into theBeanFactoryas this configuration mirrors to some extentVaultAutoConfigurationandVaultReactiveAutoConfiguration.Infrastructure beans can be customized by registering instances through
BootstrapRegistryInitializer.- Since:
- 3.0
- Author:
- Mark Paluch
- See Also:
VaultConfigLocation,VaultAutoConfiguration,VaultReactiveAutoConfiguration
-
-
Constructor Summary
Constructors Constructor Description VaultConfigDataLoader(org.springframework.boot.logging.DeferredLogFactory logFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.boot.context.config.ConfigDataload(org.springframework.boot.context.config.ConfigDataLoaderContext context, VaultConfigLocation location)
-
-
-
Method Detail
-
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:
loadin interfaceorg.springframework.boot.context.config.ConfigDataLoader<VaultConfigLocation>- Throws:
org.springframework.boot.context.config.ConfigDataLocationNotFoundException
-
-