com.atlassian.bamboo.build.strategy
Class AbstractBuildStrategy

java.lang.Object
  extended by com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
All Implemented Interfaces:
BuildStrategy, ConvertibleFromConfig, java.io.Serializable
Direct Known Subclasses:
AbstractQuartzStrategy, ManualBuildStrategy, TriggeredBuildStrategy

public abstract class AbstractBuildStrategy
extends java.lang.Object
implements BuildStrategy

Common build strategy behaviour

See Also:
Serialized Form

Constructor Summary
AbstractBuildStrategy()
           
 
Method Summary
 void addDefaultValues(BuildConfiguration buildConfiguration)
           
 java.lang.String getDescription()
           
 void init(Build build)
          Default to do nothing
protected  void log(Build build, java.lang.String message)
           
 void populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
          Update the current object with data in the HierarchicalConfiguration
 org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
          Generate a HierarchicalConfiguration from the current state of the object
 ErrorCollection validate(BuildConfiguration buildConfiguration)
          Takes in a BuildConfiguration and returns any errors possible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.build.strategy.BuildStrategy
getKey, getName
 

Constructor Detail

AbstractBuildStrategy

public AbstractBuildStrategy()
Method Detail

init

public void init(Build build)
Default to do nothing

Specified by:
init in interface BuildStrategy

addDefaultValues

public void addDefaultValues(BuildConfiguration buildConfiguration)
Specified by:
addDefaultValues in interface BuildStrategy

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface BuildStrategy

toConfiguration

@NotNull
public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
Description copied from interface: ConvertibleFromConfig
Generate a HierarchicalConfiguration from the current state of the object

Specified by:
toConfiguration in interface ConvertibleFromConfig
Returns:
Always returns an HierarchicalConfiguration. Never null

populateFromConfig

public void populateFromConfig(@NotNull
                               org.apache.commons.configuration.HierarchicalConfiguration config)
Description copied from interface: ConvertibleFromConfig
Update the current object with data in the HierarchicalConfiguration

Specified by:
populateFromConfig in interface ConvertibleFromConfig

validate

public ErrorCollection validate(BuildConfiguration buildConfiguration)
Description copied from interface: BuildStrategy
Takes in a BuildConfiguration and returns any errors possible

Specified by:
validate in interface BuildStrategy
Parameters:
buildConfiguration - not null
Returns:
ErrorCollection. must not be null

log

protected void log(Build build,
                   java.lang.String message)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.