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 TypeMethodDescriptionvoid
execute
(UpgradeContext<T> context) Executes eachUpgradeOperation
for the given targetboolean
isEmpty()
Indicates if the pipeline doesn't contain any operations
-
Method Details
-
execute
Executes eachUpgradeOperation
for the given target- Parameters:
context
- the upgrade context- Throws:
UpgradeException
- if any of theUpgradeOperation
s fails
-
isEmpty
boolean isEmpty()Indicates if the pipeline doesn't contain any operations- Returns:
- true if there are no operations
-