com.atlassian.bamboo.builder
Interface BuilderManager

All Known Implementing Classes:
DefaultBuilderManager

public interface BuilderManager


Method Summary
 CapabilitySet addDefaultBuilderToCapabilitySet(CapabilitySet capabilitySet)
          Adds default builder and paths to the given CapabilitySet
 java.util.List<Builder> getAllBuilders()
          A list of Builder objects available to the system with default configuration.
 java.util.Map<java.lang.String,Builder> getAllBuildersAsMap()
           
 java.util.List<Builder> getAllConfigurableBuilders()
          Returns all builders with Builder.isLabelPathMapConfigurable() returning true
 Builder getBuilder(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> params)
          Creates a new builder with the specified key, instantiated with the given params
 Builder getBuilderByShortKey(java.lang.String shortKey)
          Gets a builder by a short key representation.
 Builder getBuilderFromLabel(java.lang.String selectedBuildLabel)
          Gets the Builder object from a given label
 java.util.Map<java.lang.String,java.lang.String> getBuilderLabelTypeMap()
          Obtain the total set of builder maps.
 void init()
          Starts up and initialises the builder manager
 

Method Detail

init

void init()
Starts up and initialises the builder manager


getBuilder

Builder getBuilder(java.lang.String key,
                   @Nullable
                   java.util.Map<java.lang.String,java.lang.String> params)
Creates a new builder with the specified key, instantiated with the given params

Parameters:
key - - full plugin key of the build e.g com.atlassian.bamboo.plugin.system.builder:ant
params - - params that the builder will be instantiated with. Can be null
Returns:
a constructed Builder

getAllBuilders

java.util.List<Builder> getAllBuilders()
A list of Builder objects available to the system with default configuration.

Returns:
List of Builders. Collections.EMPTY_LIST if none available

getAllBuildersAsMap

java.util.Map<java.lang.String,Builder> getAllBuildersAsMap()

getBuilderLabelTypeMap

java.util.Map<java.lang.String,java.lang.String> getBuilderLabelTypeMap()
Obtain the total set of builder maps. The key are the labels for the Builder and the values are LabelPathMap


getAllConfigurableBuilders

java.util.List<Builder> getAllConfigurableBuilders()
Returns all builders with Builder.isLabelPathMapConfigurable() returning true

Returns:
List of Builder. Collections.EMPTY_LIST if none available

getBuilderByShortKey

Builder getBuilderByShortKey(java.lang.String shortKey)
Gets a builder by a short key representation.

Parameters:
shortKey -
Returns:

addDefaultBuilderToCapabilitySet

@NotNull
CapabilitySet addDefaultBuilderToCapabilitySet(@NotNull
                                                       CapabilitySet capabilitySet)
Adds default builder and paths to the given CapabilitySet

Parameters:
localShared -

getBuilderFromLabel

@Nullable
Builder getBuilderFromLabel(@Nullable
                                     java.lang.String selectedBuildLabel)
Gets the Builder object from a given label

Parameters:
selectedBuildLabel -
Returns:


Copyright © 2010 Atlassian. All Rights Reserved.