@Component public class SpecsExporterImpl extends Object implements SpecsExporter
SpecsExporter.ExportFormat| Constructor and Description |
|---|
SpecsExporterImpl(PlanConfigExportService planConfigExportService,
PlanPermissionService planPermissionService,
AdministrationConfigurationAccessor administrationConfigurationAccessor,
DeploymentExportService deploymentExportService,
YamlEmitter yamlEmitter) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCodeFromDeploymentProject(DeploymentProject deploymentProject,
SpecsExporter.ExportFormat format,
String packageName,
String className)
Convert a deployment plan to a Java Bamboo Spec
|
String |
getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan)
Delegates to
SpecsExporter.getCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String) with a default packageName and className |
String |
getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan,
SpecsExporter.ExportFormat format,
String packageName,
String className)
Convert a plan to a Java Bamboo Spec
|
@Autowired public SpecsExporterImpl(PlanConfigExportService planConfigExportService, PlanPermissionService planPermissionService, AdministrationConfigurationAccessor administrationConfigurationAccessor, DeploymentExportService deploymentExportService, YamlEmitter yamlEmitter)
public String getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
SpecsExporterSpecsExporter.getCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String) with a default packageName and classNamegetCodeFromPlan in interface SpecsExportercom.atlassian.bamboo.specs.api.codegen.CodeGenerationExceptionpublic String getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan, SpecsExporter.ExportFormat format, String packageName, String className) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
SpecsExportergetCodeFromPlan in interface SpecsExporterimmutableTopLevelPlan - The top level plan to extractformat - specs format (Java or YAML)packageName - The package to put the spec inclassName - The class name for the speccom.atlassian.bamboo.specs.api.codegen.CodeGenerationException - if generating the file failspublic String getCodeFromDeploymentProject(DeploymentProject deploymentProject, SpecsExporter.ExportFormat format, String packageName, String className) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
SpecsExportergetCodeFromDeploymentProject in interface SpecsExporterdeploymentProject - The top level plan to extractformat - specs format (Java or YAML)packageName - The package to put the spec inclassName - The class name for the speccom.atlassian.bamboo.specs.api.codegen.CodeGenerationException - if generating the file failsCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.