@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
SpecsExporter
SpecsExporter.getCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String)
with a default packageName and classNamegetCodeFromPlan
in interface SpecsExporter
com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
public String getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan, SpecsExporter.ExportFormat format, String packageName, String className) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
SpecsExporter
getCodeFromPlan
in interface SpecsExporter
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 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
SpecsExporter
getCodeFromDeploymentProject
in interface SpecsExporter
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 speccom.atlassian.bamboo.specs.api.codegen.CodeGenerationException
- if generating the file failsCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.