Package org.craftercms.commons.upgrade
Interface UpgradePipeline<T>
- Type Parameters:
T- The target type supported
- All Known Implementing Classes:
DefaultUpgradePipelineImpl
public interface UpgradePipeline<T>
Groups any number of
UpgradeOperation instances- Since:
- 3.1.5
- Author:
- joseross
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(UpgradeContext<T> context) Executes eachUpgradeOperationfor the given targetbooleanisEmpty()Indicates if the pipeline doesn't contain any operations
-
Method Details
-
execute
Executes eachUpgradeOperationfor the given target- Parameters:
context- the upgrade context- Throws:
UpgradeException- if any of theUpgradeOperations fails
-
isEmpty
boolean isEmpty()Indicates if the pipeline doesn't contain any operations- Returns:
- true if there are no operations
-