com.atlassian.bamboo.build
Class CachedBuildDefinitionManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.CachedBuildDefinitionManagerImpl
All Implemented Interfaces:
BuildDefinitionManager, com.atlassian.event.EventListener

public class CachedBuildDefinitionManagerImpl
extends java.lang.Object
implements BuildDefinitionManager, com.atlassian.event.EventListener


Constructor Summary
CachedBuildDefinitionManagerImpl(BuildDefinitionManager delegate)
           
 
Method Summary
 BuildDefinition getBuildDefinition(PlanKey planKey)
          Returns a stateful version the build definition for the Plan.
 java.lang.Class[] getHandledEventClasses()
           
 void handleEvent(com.atlassian.event.Event event)
           
 void savePlanAndDefinition(Plan plan)
          Saves the Plan and the BuildConfiguration
 void savePlanAndDefinition(Plan plan, BuildConfiguration buildConfiguration)
          Saves the Plan and the BuildConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedBuildDefinitionManagerImpl

public CachedBuildDefinitionManagerImpl(BuildDefinitionManager delegate)
Method Detail

getBuildDefinition

public BuildDefinition getBuildDefinition(PlanKey planKey)
Description copied from interface: BuildDefinitionManager
Returns a stateful version the build definition for the Plan. This means that when you set various flags on it, the flags won't be lost (unless you updated your BuildDefinition.

Specified by:
getBuildDefinition in interface BuildDefinitionManager
Returns:
A populated BuildDefinition object.

savePlanAndDefinition

public void savePlanAndDefinition(Plan plan)
Description copied from interface: BuildDefinitionManager
Saves the Plan and the BuildConfiguration

Specified by:
savePlanAndDefinition in interface BuildDefinitionManager

savePlanAndDefinition

public void savePlanAndDefinition(Plan plan,
                                  BuildConfiguration buildConfiguration)
Description copied from interface: BuildDefinitionManager
Saves the Plan and the BuildConfiguration

Specified by:
savePlanAndDefinition in interface BuildDefinitionManager

handleEvent

public void handleEvent(com.atlassian.event.Event event)
Specified by:
handleEvent in interface com.atlassian.event.EventListener

getHandledEventClasses

public java.lang.Class[] getHandledEventClasses()
Specified by:
getHandledEventClasses in interface com.atlassian.event.EventListener


Copyright © 2010 Atlassian. All Rights Reserved.