Interface SpecsExporter

  • All Known Implementing Classes:
    SpecsExporterImpl

    @ExperimentalApi
    public interface SpecsExporter
    • Method Detail

      • getCodeFromPlan

        String getCodeFromPlan​(ImmutableTopLevelPlan immutableTopLevelPlan,
                               SpecsExporter.ExportFormat format,
                               @Nullable
                               @Nullable String packageName,
                               @Nullable
                               @Nullable String className)
                        throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
        Convert a plan to a Java Bamboo Spec
        Parameters:
        immutableTopLevelPlan - The top level plan to extract
        format - specs format (Java or YAML)
        packageName - The package to put the spec in
        className - The class name for the spec
        Throws:
        com.atlassian.bamboo.specs.api.codegen.CodeGenerationException - if generating the file fails
      • getCodeFromDeploymentProject

        String getCodeFromDeploymentProject​(DeploymentProject deploymentProject,
                                            SpecsExporter.ExportFormat format,
                                            String packageName,
                                            String className)
                                     throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
        Convert a deployment plan to a Java Bamboo Spec
        Parameters:
        deploymentProject - The top level plan to extract
        format - specs format (Java or YAML)
        packageName - The package to put the spec in
        className - The class name for the spec
        Throws:
        com.atlassian.bamboo.specs.api.codegen.CodeGenerationException - if generating the file fails