T - The target type supportedpublic class DefaultUpgradePipelineImpl<T> extends Object implements UpgradePipeline<T>
UpgradePipeline.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
continueOnFailure
Indicates if the pipeline should continue executing after an operation fails
|
protected String |
name
Name of the pipeline.
|
protected List<UpgradeOperation<T>> |
operations
List of all upgrade operations to be executed.
|
| Constructor and Description |
|---|
DefaultUpgradePipelineImpl(String name,
List<UpgradeOperation<T>> operations) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(T target)
Executes each
UpgradeOperation for the given target |
boolean |
isEmpty()
Indicates if the pipeline doesn't contain any operations
|
void |
setContinueOnFailure(boolean continueOnFailure) |
protected String name
protected boolean continueOnFailure
protected List<UpgradeOperation<T>> operations
public DefaultUpgradePipelineImpl(String name, List<UpgradeOperation<T>> operations)
public void setContinueOnFailure(boolean continueOnFailure)
public void execute(T target) throws UpgradeException
UpgradeOperation for the given targetexecute in interface UpgradePipeline<T>target - the targetUpgradeException - if any of the UpgradeOperations failspublic boolean isEmpty()
isEmpty in interface UpgradePipeline<T>Copyright © 2020 CrafterCMS. All rights reserved.