com.atlassian.bamboo.v2.build.trigger
Class AbstractTriggerReason

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.trigger.AbstractTriggerReason
All Implemented Interfaces:
TriggerReason, java.io.Serializable
Direct Known Subclasses:
ChildDependencyTriggerReason, CodeChangedTriggerReason, DependencyTriggerReason, InitialBuildTriggerReason, JIRAReleaseTriggerReason, ManualBuildTriggerReason, ScheduledTriggerReason, UnknownTriggerReason

public abstract class AbstractTriggerReason
extends java.lang.Object
implements TriggerReason

See Also:
Serialized Form

Field Summary
protected static java.lang.String PLUGIN_KEY
           
protected  com.opensymphony.xwork.TextProvider textProvider
           
 
Constructor Summary
AbstractTriggerReason()
           
 
Method Summary
 TriggerReason getChildTriggerReason(BuildContext child, ImmutablePlan plan)
          If build A (triggered because of this TriggerReason) caused builds of plans X,Y,Z to trigger, this method will be called to determine trigger reasons for plans X, Y, Z.
 java.lang.String getKey()
          The TriggerReason key
protected  void init(java.lang.String key)
           
 void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.v2.build.trigger.TriggerReason
getName, getNameForSentence, init, init, updateBuildResultsSummary
 

Field Detail

PLUGIN_KEY

protected static final java.lang.String PLUGIN_KEY
See Also:
Constant Field Values

textProvider

protected com.opensymphony.xwork.TextProvider textProvider
Constructor Detail

AbstractTriggerReason

public AbstractTriggerReason()
Method Detail

getKey

public java.lang.String getKey()
Description copied from interface: TriggerReason
The TriggerReason key

Specified by:
getKey in interface TriggerReason
Returns:
key

init

protected void init(java.lang.String key)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setTextProvider

public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)

getChildTriggerReason

@NotNull
public TriggerReason getChildTriggerReason(BuildContext child,
                                                   ImmutablePlan plan)
Description copied from interface: TriggerReason
If build A (triggered because of this TriggerReason) caused builds of plans X,Y,Z to trigger, this method will be called to determine trigger reasons for plans X, Y, Z.

Specified by:
getChildTriggerReason in interface TriggerReason
Returns:


Copyright © 2012 Atlassian. All Rights Reserved.