com.atlassian.bamboo.build.strategy
Class DefaultBuildStrategyManager

java.lang.Object
  extended by com.atlassian.bamboo.build.strategy.DefaultBuildStrategyManager
All Implemented Interfaces:
BuildStrategyManager

public class DefaultBuildStrategyManager
extends java.lang.Object
implements BuildStrategyManager


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.build.strategy.BuildStrategyManager
BUILD_STRATEGY_DAILY, BUILD_STRATEGY_MANUAL, BUILD_STRATEGY_POLLING, BUILD_STRATEGY_SCHEDULED, BUILD_STRATEGY_TRIGGERED
 
Constructor Summary
DefaultBuildStrategyManager()
           
 
Method Summary
protected  void autowireBuildStrategy(BuildStrategy buildStrategy)
           
 java.util.List<BuildStrategy> getBuildStrategies()
          Retuns a list of available BuildStrategy objects
 BuildStrategy getNewBuildStrategyInstance(java.lang.String key)
          Takes in a BuildStrategy key a creates a new BuildStrategy for that key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBuildStrategyManager

public DefaultBuildStrategyManager()
Method Detail

getNewBuildStrategyInstance

@NotNull
public BuildStrategy getNewBuildStrategyInstance(java.lang.String key)
Description copied from interface: BuildStrategyManager
Takes in a BuildStrategy key a creates a new BuildStrategy for that key. Will default to a manual build if the key is invalid

Specified by:
getNewBuildStrategyInstance in interface BuildStrategyManager
Parameters:
key - - Cann be null
Returns:
BuildStrategy matching the key. Will return default BuildStrategy if invalid

autowireBuildStrategy

protected void autowireBuildStrategy(BuildStrategy buildStrategy)

getBuildStrategies

@NotNull
public java.util.List<BuildStrategy> getBuildStrategies()
Description copied from interface: BuildStrategyManager
Retuns a list of available BuildStrategy objects

Specified by:
getBuildStrategies in interface BuildStrategyManager
Returns:
Immutable list of BuildStrategy. Empty list if none exists.


Copyright © 2010 Atlassian. All Rights Reserved.