Class StrategyOrchestrator

java.lang.Object
org.apache.maven.cling.invoker.mvnup.goals.StrategyOrchestrator

@Named @Singleton public class StrategyOrchestrator extends Object
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 Details

  • 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 context
      pomMap - map of all POM files in the project
      Returns:
      the overall result of all strategy executions