com.xebialabs.deployit.plugin.api.deployment.planning
Interface DeploymentPlanningContext


public interface DeploymentPlanningContext

Context that is passed along during the Planning stage of a Deployment. This can be used to add DeploymentStep to the current plan, or store and retrieve attributes to transfer knowledge between multiple Contributors/Processors.


Method Summary
 void addStep(DeploymentStep step)
          Add a step to the current plan.
 void addSteps(java.util.Collection<DeploymentStep> steps)
          Add multiple steps to the current plan.
 void addSteps(DeploymentStep... steps)
          Add multiple steps to the current plan.
 java.lang.Object getAttribute(java.lang.String name)
          Returns the planning context attribute with the given name, or null if there is no attribute by that name.
 DeployedApplication getDeployedApplication()
          Returns the DeployedApplication for which the plan is being created.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Stores an attribute in the planning context.
 

Method Detail

addStep

void addStep(DeploymentStep step)
Add a step to the current plan.

Parameters:
step - the step to add.

addSteps

void addSteps(DeploymentStep... steps)
Add multiple steps to the current plan.

Parameters:
steps - the steps to add.

addSteps

void addSteps(java.util.Collection<DeploymentStep> steps)
Add multiple steps to the current plan.

Parameters:
steps - the steps to add.

getAttribute

java.lang.Object getAttribute(java.lang.String name)
Returns the planning context attribute with the given name, or null if there is no attribute by that name.

Parameters:
name - the name of the attribute
Returns:
the value of the attribute, or null if there is no attribute by that name.

setAttribute

void setAttribute(java.lang.String name,
                  java.lang.Object value)
Stores an attribute in the planning context. This attribute will be available while the deployment plan is being created.

Parameters:
name - the name of the attribute
value - the value of the attribute

getDeployedApplication

DeployedApplication getDeployedApplication()
Returns the DeployedApplication for which the plan is being created.

Returns:
the DeployedApplication for which the plan is being created.