com.xebialabs.deployit
Class ChangeResolution

java.lang.Object
  extended by com.xebialabs.deployit.ChangeResolution

public class ChangeResolution
extends java.lang.Object

Holds information on what steps to be executed (in the middleware) to make the changes "happen".


Constructor Summary
ChangeResolution()
          Creates an empty change resolution.
ChangeResolution(Change<?> c)
          Creates a change resolution for the resolved change.
ChangeResolution(Change<?> c, java.util.List<Step> steps)
          Creates a change resolution linking the given change with the provided step list.
 
Method Summary
 void addChange(Change<?> changeToAdd)
          Adds a change to the list of changes resolved.
 void addStep(Step stepToAdd)
          Adds a step to the list of steps to be executed.
 void addSteps(java.util.List<Step> stepsToAdd)
          Adds multiple steps to the list of steps to be executed.
 java.util.Set<Change<?>> getChanges()
          Returns the changes that are resolved by this changeresolution.
 java.util.List<Step> getSteps()
          Returns the steps that need to executed for the resolved changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeResolution

public ChangeResolution()
Creates an empty change resolution.


ChangeResolution

public ChangeResolution(Change<?> c)
Creates a change resolution for the resolved change. Additional changes can also be added by invoking addChange(Change).

Parameters:
c - the resolved change (may not be null)

ChangeResolution

public ChangeResolution(Change<?> c,
                        java.util.List<Step> steps)
Creates a change resolution linking the given change with the provided step list.

Parameters:
c - the resolved change (may not be null)
steps - the steps for the change (may not be null)
Method Detail

getChanges

public java.util.Set<Change<?>> getChanges()
Returns the changes that are resolved by this changeresolution.

Returns:
the set of resolved changes.

getSteps

public java.util.List<Step> getSteps()
Returns the steps that need to executed for the resolved changes.

Returns:
the list of steps (never null).

addChange

public void addChange(Change<?> changeToAdd)
Adds a change to the list of changes resolved.

Parameters:
changeToAdd - the change to add (may not be null).

addStep

public void addStep(Step stepToAdd)
Adds a step to the list of steps to be executed.

Parameters:
stepToAdd - the step to add (may not be null).

addSteps

public void addSteps(java.util.List<Step> stepsToAdd)
Adds multiple steps to the list of steps to be executed.

Parameters:
stepsToAdd - the steps to add (may not be null).


Copyright © 2010. All Rights Reserved.