Interface CustomBuildDefinitionTransformer

All Known Subinterfaces:
BuildConfigurationUIPlugin, DependenciesBuildConfigurationPlugin, MiscellaneousBuildConfigurationPlugin
All Known Implementing Classes:
AutomaticDependencyManagementPlugin, BuildExpiryPerPlanPlugin, BuildMonitoringPerPlanPlugin, ConcurrentBuildsPlanConfigurationPlugin

public interface CustomBuildDefinitionTransformer

An interface that allows a plugin module to transform a BuildDefinition object as it's be created from XML. This allows you to put arbitrary objects into the custom objects map

Method Summary
 void transformBuildDefinition(java.util.Map<java.lang.String,java.lang.Object> configObjects, java.util.Map<java.lang.String,java.lang.String> configParameters, BuildDefinition buildDefinition)
          Implementors can add their custom objects to the configObjects map.

Method Detail


void transformBuildDefinition(@NotNull
                              java.util.Map<java.lang.String,java.lang.Object> configObjects,
                              java.util.Map<java.lang.String,java.lang.String> configParameters,
                              BuildDefinition buildDefinition)
Implementors can add their custom objects to the configObjects map. The key should be unique to plugin... It's better to be descriptive. It is possible to also update the buildDefinition directly, but it's not recommended.

configObjects - - Map - string key, object value. A map to put custom objects into. @NotNull
configParameters - - Map - String key, string value. These are taken from all fields that begin with "custom."
buildDefinition - - the fully constructed BuildDefinition @NotNull

Copyright © 2011 Atlassian. All Rights Reserved.