com.atlassian.bamboo.v2.build
Class BuildContextImpl

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BuildIdentifierImpl
      extended by com.atlassian.bamboo.v2.build.BuildContextImpl
All Implemented Interfaces:
BuildContext, BuildIdentifier, java.io.Serializable

public class BuildContextImpl
extends BuildIdentifierImpl
implements BuildContext

See Also:
Serialized Form

Constructor Summary
BuildContextImpl(Build buildPlan, int buildNumber, TriggerReason triggerReason, BuildPlanDefinition buildPlanDefinition, BuildChanges buildChanges)
           
BuildContextImpl(java.lang.String planKey, java.lang.String planName, int buildNumber, TriggerReason triggerReason, BuildPlanDefinition buildPlanDefinition, BuildChanges buildChanges)
           
 
Method Summary
 BuildChanges getBuildChanges()
          Returns the build changes, if any, that represents the changes that triggerred this build.
 BuildPlanDefinition getBuildPlanDefinition()
           
 CurrentBuildResult getBuildResult()
          The information about the results of a build
 ErrorCollection getErrorCollection()
          Any errors associated with the build
 TriggerReason getTriggerReason()
          The reason this build was triggered
 
Methods inherited from class com.atlassian.bamboo.v2.build.BuildIdentifierImpl
equals, getBuildNumber, getBuildResultKey, getPlanKey, getPlanName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildIdentifier
getBuildNumber, getBuildResultKey, getPlanKey, getPlanName
 

Constructor Detail

BuildContextImpl

public BuildContextImpl(Build buildPlan,
                        int buildNumber,
                        TriggerReason triggerReason,
                        BuildPlanDefinition buildPlanDefinition,
                        BuildChanges buildChanges)

BuildContextImpl

public BuildContextImpl(java.lang.String planKey,
                        java.lang.String planName,
                        int buildNumber,
                        TriggerReason triggerReason,
                        BuildPlanDefinition buildPlanDefinition,
                        BuildChanges buildChanges)
Method Detail

getTriggerReason

@NotNull
public TriggerReason getTriggerReason()
Description copied from interface: BuildContext
The reason this build was triggered

Specified by:
getTriggerReason in interface BuildContext
Returns:
@NotNull

getBuildPlanDefinition

@NotNull
public BuildPlanDefinition getBuildPlanDefinition()
Specified by:
getBuildPlanDefinition in interface BuildContext
Returns:

getBuildChanges

@NotNull
public BuildChanges getBuildChanges()
Description copied from interface: BuildContext
Returns the build changes, if any, that represents the changes that triggerred this build.

Specified by:
getBuildChanges in interface BuildContext
Returns:
Never null. WIll return a build changes object with the approriate list of changes, the list will be null if no changes were found.

getBuildResult

@NotNull
public CurrentBuildResult getBuildResult()
Description copied from interface: BuildContext
The information about the results of a build

Specified by:
getBuildResult in interface BuildContext
Returns:
CurrentBuildResult

getErrorCollection

@NotNull
public ErrorCollection getErrorCollection()
Description copied from interface: BuildContext
Any errors associated with the build

Specified by:
getErrorCollection in interface BuildContext


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.