com.atlassian.bamboo.build.strategy
Class DefaultBuildStrategyManager

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

Deprecated. since 5.8

@Deprecated
public class DefaultBuildStrategyManager
extends Object
implements BuildStrategyManager


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.trigger.TriggerTypeManager
BUILD_STRATEGY_DAILY, BUILD_STRATEGY_MANUAL, BUILD_STRATEGY_POLLING, BUILD_STRATEGY_SCHEDULED, BUILD_STRATEGY_STASH, BUILD_STRATEGY_TRIGGERED, SELECTED_BUILD_STRATEGY
 
Constructor Summary
DefaultBuildStrategyManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
          Deprecated. Alternative constructor for agent that doesn't use feature manager
 
Method Summary
protected
<T extends BuildStrategy>
T
autowireBuildStrategy(T buildStrategy)
          Deprecated.  
 Iterable<TriggerModuleDescriptor> getAvailableTriggerDescriptors(Triggerable triggerable)
          Deprecated. Provides a list of available trigger types for a specific triggerable.
 Iterable<TriggerModuleDescriptor> getAvailableTriggerDescriptorsByType(Class<? extends Triggerable> triggerableClass)
          Deprecated. Provides a list of available trigger types for a specific type of triggerable.
 List<BuildStrategy> getBuildStrategies()
          Deprecated. Retuns a list of available BuildStrategy objects
 List<BuildStrategy> getBuildStrategies(boolean sourceControlUsed)
          Deprecated. Retuns a list of available BuildStrategy objects with an option to include/exclude strategies that do not apply to Plans that don't use any VCS.
 List<BuildStrategy> getBuildStrategiesForPlanCreate(boolean sourceControlUsed)
          Deprecated. Retuns a list of available BuildStrategy objects with an option to include/exclude strategies that do not apply to Plans that don't use any VCS.
 List<BuildTriggerCondition> getBuildTriggerConditions()
          Deprecated.  
 BuildStrategy getNewBuildStrategyInstance(String key)
          Deprecated. Takes in a BuildStrategy key a creates a new BuildStrategy for that key.
 BuildStrategy getNewTriggerInstance(String key)
          Deprecated.  
 TriggerActivator getTriggerActivator(String pluginKey)
          Deprecated. Get TriggerActivator instance for a particular plugin key.
 TriggerModuleDescriptor getTriggerDescriptor(String pluginKey)
          Deprecated. Get the trigger type descriptor matching a particular plugin key.
 List<BuildStrategy> getTriggerTypes(Class<? extends Triggerable> type)
          Deprecated.  
 List<BuildStrategy> getTriggerTypes(Class<? extends Triggerable> type, boolean sourceControlUsed)
          Deprecated.  
 List<BuildStrategy> getTriggerTypesForCreate(Class<? extends Triggerable> type, boolean sourceControlUsed)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBuildStrategyManager

public DefaultBuildStrategyManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
Deprecated. 
Alternative constructor for agent that doesn't use feature manager

Parameters:
pluginAccessor -
Method Detail

getNewTriggerInstance

@NotNull
public BuildStrategy getNewTriggerInstance(@Nullable
                                                   String key)
Deprecated. 
Specified by:
getNewTriggerInstance in interface TriggerTypeManager

autowireBuildStrategy

protected <T extends BuildStrategy> T autowireBuildStrategy(T buildStrategy)
Deprecated. 

getTriggerTypes

@NotNull
public List<BuildStrategy> getTriggerTypes(@NotNull
                                                   Class<? extends Triggerable> type)
Deprecated. 
Specified by:
getTriggerTypes in interface TriggerTypeManager

getTriggerTypes

@NotNull
public List<BuildStrategy> getTriggerTypes(@NotNull
                                                   Class<? extends Triggerable> type,
                                                   boolean sourceControlUsed)
Deprecated. 
Specified by:
getTriggerTypes in interface TriggerTypeManager

getNewBuildStrategyInstance

@NotNull
public BuildStrategy getNewBuildStrategyInstance(String key)
Deprecated. 
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

getTriggerTypesForCreate

@NotNull
public List<BuildStrategy> getTriggerTypesForCreate(@NotNull
                                                            Class<? extends Triggerable> type,
                                                            boolean sourceControlUsed)
Deprecated. 
Specified by:
getTriggerTypesForCreate in interface TriggerTypeManager

getBuildStrategies

@NotNull
public List<BuildStrategy> getBuildStrategies()
Deprecated. 
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.

getBuildStrategiesForPlanCreate

@NotNull
public List<BuildStrategy> getBuildStrategiesForPlanCreate(boolean sourceControlUsed)
Deprecated. 
Description copied from interface: BuildStrategyManager
Retuns a list of available BuildStrategy objects with an option to include/exclude strategies that do not apply to Plans that don't use any VCS. Used during creating Chains.

Specified by:
getBuildStrategiesForPlanCreate in interface BuildStrategyManager
Parameters:
sourceControlUsed - indicates if VCS system is used
Returns:
Immutable list of BuildStrategy. Empty list if none exists.

getBuildStrategies

@NotNull
public List<BuildStrategy> getBuildStrategies(boolean sourceControlUsed)
Deprecated. 
Description copied from interface: BuildStrategyManager
Retuns a list of available BuildStrategy objects with an option to include/exclude strategies that do not apply to Plans that don't use any VCS.

Specified by:
getBuildStrategies in interface BuildStrategyManager
Parameters:
sourceControlUsed - indicates if VCS system is used
Returns:
Immutable list of BuildStrategy. Empty list if none exists.

getBuildTriggerConditions

@NotNull
public List<BuildTriggerCondition> getBuildTriggerConditions()
Deprecated. 
Specified by:
getBuildTriggerConditions in interface BuildStrategyManager
Returns:
all trigger condition plugins currently in the system.

getAvailableTriggerDescriptors

@NotNull
public Iterable<TriggerModuleDescriptor> getAvailableTriggerDescriptors(@NotNull
                                                                                Triggerable triggerable)
Deprecated. 
Description copied from interface: TriggerTypeManager
Provides a list of available trigger types for a specific triggerable.

Specified by:
getAvailableTriggerDescriptors in interface TriggerTypeManager
Returns:

getAvailableTriggerDescriptorsByType

public Iterable<TriggerModuleDescriptor> getAvailableTriggerDescriptorsByType(Class<? extends Triggerable> triggerableClass)
Deprecated. 
Description copied from interface: TriggerTypeManager
Provides a list of available trigger types for a specific type of triggerable. Only use when actual instance of triggerable is not available. Otherwise use TriggerTypeManager.getAvailableTriggerDescriptors(Triggerable)

Specified by:
getAvailableTriggerDescriptorsByType in interface TriggerTypeManager
Returns:

getTriggerDescriptor

@Nullable
public TriggerModuleDescriptor getTriggerDescriptor(@Nullable
                                                             String pluginKey)
Deprecated. 
Description copied from interface: TriggerTypeManager
Get the trigger type descriptor matching a particular plugin key.

Specified by:
getTriggerDescriptor in interface TriggerTypeManager
Parameters:
pluginKey - - key to match
Returns:
TriggerModuleDescriptor matching the given key if it exists. Null if the plugin can not be found.

getTriggerActivator

@Nullable
public TriggerActivator getTriggerActivator(@NotNull
                                                     String pluginKey)
Deprecated. 
Description copied from interface: TriggerTypeManager
Get TriggerActivator instance for a particular plugin key.

Specified by:
getTriggerActivator in interface TriggerTypeManager
Parameters:
pluginKey - - key to match
Returns:
TriggerActivator matching the given key if it exists. Null if the plugin can not be found.


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.