Class StrategyOrchestrator
java.lang.Object
org.apache.maven.cling.invoker.mvnup.goals.StrategyOrchestrator
Orchestrates the execution of different upgrade strategies.
Determines which strategies to apply based on options and executes them in priority order.
The DI container automatically sorts the injected strategies by their @Priority annotations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteStrategies
(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Executes all applicable strategies for the given context and POM map.
-
Constructor Details
-
StrategyOrchestrator
-
-
Method Details
-
executeStrategies
public UpgradeResult executeStrategies(UpgradeContext context, Map<Path, org.jdom2.Document> pomMap) Executes all applicable strategies for the given context and POM map.- Parameters:
context
- the upgrade contextpomMap
- map of all POM files in the project- Returns:
- the overall result of all strategy executions
-