Class SpecsExporterImpl
java.lang.Object
com.atlassian.bamboo.configuration.external.exporters.SpecsExporterImpl
- All Implemented Interfaces:
SpecsExporter
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.configuration.external.exporters.SpecsExporter
SpecsExporter.ExportFormat -
Constructor Summary
ConstructorsConstructorDescriptionSpecsExporterImpl(PlanConfigExportService planConfigExportService, PlanPermissionService planPermissionService, AdministrationConfigurationAccessor administrationConfigurationAccessor, DeploymentExportService deploymentExportService, YamlEmitter yamlEmitter) -
Method Summary
Modifier and TypeMethodDescriptiongetCodeFromDeploymentProject(DeploymentProject deploymentProject, SpecsExporter.ExportFormat format, String packageName, String className) Convert a deployment plan to a Java Bamboo SpecgetCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan) Delegates toSpecsExporter.getCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String)with a default packageName and classNamegetCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan, SpecsExporter.ExportFormat format, String packageName, String className) Convert a plan to a Java Bamboo Spec
-
Constructor Details
-
SpecsExporterImpl
@Autowired public SpecsExporterImpl(PlanConfigExportService planConfigExportService, PlanPermissionService planPermissionService, AdministrationConfigurationAccessor administrationConfigurationAccessor, DeploymentExportService deploymentExportService, YamlEmitter yamlEmitter)
-
-
Method Details
-
getCodeFromPlan
public String getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException Description copied from interface:SpecsExporterDelegates toSpecsExporter.getCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String)with a default packageName and className- Specified by:
getCodeFromPlanin interfaceSpecsExporter- Parameters:
immutableTopLevelPlan-- Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
-
getCodeFromPlan
public String getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan, SpecsExporter.ExportFormat format, String packageName, String className) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException Description copied from interface:SpecsExporterConvert a plan to a Java Bamboo Spec- Specified by:
getCodeFromPlanin interfaceSpecsExporter- Parameters:
immutableTopLevelPlan- The top level plan to extractformat- specs format (Java or YAML)packageName- The package to put the spec inclassName- The class name for the spec- Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException- if generating the file fails
-
getCodeFromDeploymentProject
public String getCodeFromDeploymentProject(DeploymentProject deploymentProject, SpecsExporter.ExportFormat format, String packageName, String className) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException Description copied from interface:SpecsExporterConvert a deployment plan to a Java Bamboo Spec- Specified by:
getCodeFromDeploymentProjectin interfaceSpecsExporter- Parameters:
deploymentProject- The top level plan to extractformat- specs format (Java or YAML)packageName- The package to put the spec inclassName- The class name for the spec- Throws:
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException- if generating the file fails
-