Class CellarDefinitionStage

  • All Implemented Interfaces:
    BuildStage

    public class CellarDefinitionStage
    extends Object
    implements BuildStage
    This BuildStage implementation registers services using a pre-existing Definitions instance. The Definitions will be used to populate a new Cellar, which in turn will be used for registering services into the Vault.
    Author:
    Pierre Lecerf ([email protected]) Created on 2020/05/24
    • Constructor Detail

      • CellarDefinitionStage

        public CellarDefinitionStage​(VaultFactory factory,
                                     Definitions definitions)
        Parameters:
        factory -
        definitions -
    • Method Detail

      • build

        public void build​(Vault vault)
                   throws VaultException
        Specified by:
        build in interface BuildStage
        Parameters:
        vault - the Vault instance to register services to
        Throws:
        VaultException - if an error occurred during the build process