Interface DeploymentPipelineFactory

  • All Known Implementing Classes:
    DeploymentPipelineFactoryImpl

    public interface DeploymentPipelineFactory
    Factory that uses target-specific YAML configuration and Spring configuration to create the DeploymentPipeline for a target.
    Author:
    avasquez
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      DeploymentPipeline getPipeline​(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> configuration, org.springframework.context.ApplicationContext applicationContext, String pipelinePropertyName)
      Creates a DeploymentPipeline based on the specified configuration
    • Method Detail

      • getPipeline

        DeploymentPipeline getPipeline​(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> configuration,
                                       org.springframework.context.ApplicationContext applicationContext,
                                       String pipelinePropertyName)
                                throws org.craftercms.commons.config.ConfigurationException,
                                       DeployerException
        Creates a DeploymentPipeline based on the specified configuration
        Parameters:
        configuration - the target's YAML configuration
        applicationContext - the target's application context
        pipelinePropertyName - the name of the pipeline property in the YAML configuration
        Returns:
        the deployment pipeline
        Throws:
        org.craftercms.commons.config.ConfigurationException - if a configuration related exception occurs
        DeployerException - if a general error occurs