Class SpecsExporterImpl
- java.lang.Object
-
- com.atlassian.bamboo.configuration.external.exporters.SpecsExporterImpl
-
- All Implemented Interfaces:
SpecsExporter
@Component public class SpecsExporterImpl extends Object implements SpecsExporter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.configuration.external.exporters.SpecsExporter
SpecsExporter.ExportFormat
-
-
Constructor Summary
Constructors Constructor Description SpecsExporterImpl(PlanConfigExportService planConfigExportService, PlanPermissionService planPermissionService, AdministrationConfigurationAccessor administrationConfigurationAccessor, DeploymentExportService deploymentExportService, YamlEmitter yamlEmitter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCodeFromDeploymentProject(DeploymentProject deploymentProject, SpecsExporter.ExportFormat format, String packageName, String className)
Convert a deployment plan to a Java Bamboo SpecString
getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan)
Delegates toSpecsExporter.getCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String)
with a default packageName and classNameString
getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan, SpecsExporter.ExportFormat format, String packageName, String className)
Convert a plan to a Java Bamboo Spec
-
-
-
Constructor Detail
-
SpecsExporterImpl
@Autowired public SpecsExporterImpl(PlanConfigExportService planConfigExportService, PlanPermissionService planPermissionService, AdministrationConfigurationAccessor administrationConfigurationAccessor, DeploymentExportService deploymentExportService, YamlEmitter yamlEmitter)
-
-
Method Detail
-
getCodeFromPlan
public String getCodeFromPlan(ImmutableTopLevelPlan immutableTopLevelPlan) throws com.atlassian.bamboo.specs.api.codegen.CodeGenerationException
Description copied from interface:SpecsExporter
Delegates toSpecsExporter.getCodeFromPlan(ImmutableTopLevelPlan, ExportFormat, String, String)
with a default packageName and className- Specified by:
getCodeFromPlan
in interfaceSpecsExporter
- 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:SpecsExporter
Convert a plan to a Java Bamboo Spec- Specified by:
getCodeFromPlan
in 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:SpecsExporter
Convert a deployment plan to a Java Bamboo Spec- Specified by:
getCodeFromDeploymentProject
in 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
-
-