Package com.noleme.vault.builder
Class CellarPathStage
- java.lang.Object
-
- com.noleme.vault.builder.CellarPathStage
-
- All Implemented Interfaces:
BuildStage
public class CellarPathStage extends Object implements BuildStage
This BuildStage implementation registers services using a path to a Cellar configuration file. The provided VaultFactory will be used to build the Cellar once the path is resolved. An optional "adjuster" can perform modifications before populating the Cellar.- Author:
- Pierre Lecerf ([email protected]) Created on 2020/05/24
-
-
Constructor Summary
Constructors Constructor Description CellarPathStage(VaultFactory factory, String path)
CellarPathStage(VaultFactory factory, String path, VaultAdjuster adjuster)
CellarPathStage(VaultFactory factory, List<String> paths)
CellarPathStage(VaultFactory factory, List<String> paths, VaultAdjuster adjuster)
-
-
-
Constructor Detail
-
CellarPathStage
public CellarPathStage(VaultFactory factory, String path)
- Parameters:
factory
-path
-
-
CellarPathStage
public CellarPathStage(VaultFactory factory, String path, VaultAdjuster adjuster)
- Parameters:
factory
-path
-
-
CellarPathStage
public CellarPathStage(VaultFactory factory, List<String> paths)
- Parameters:
factory
-paths
-
-
CellarPathStage
public CellarPathStage(VaultFactory factory, List<String> paths, VaultAdjuster adjuster)
- Parameters:
factory
-paths
-adjuster
-
-
-
Method Detail
-
build
public void build(Vault vault) throws VaultException
- Specified by:
build
in interfaceBuildStage
- Parameters:
vault
- the Vault instance to register services to- Throws:
VaultException
- if an error occurred during the build process
-
-