Object ModuleMap
-
- All Implemented Interfaces:
public class ModuleMapBrowser4 module topology — a STATIC snapshot of which Maven modules depend on which, kept in sync with the real pom.xml graph.
Used by the coding domain's
impacttool and DevTaskPlanner as the no-I/O fallback (the LIVE graph from ModuleGraph is preferred whenever the workspace is available). The snapshot is validated against the real repo by ModuleMapDriftE2ETest: adding a module to the poms without syncing this map fails the test, and the test message names the missing modules.The map mirrors the actual pom.xml dependency edges of the Browser4 repository. When the module graph changes, this map is regenerated from the poms rather than being a hand-maintained contract.
-
-
Method Summary
Modifier and Type Method Description final List<String>transitiveDependents(String module)All modules transitively affected when module changes (module + its direct dependents, transitively closed). final StringmavenTestCommand(String module, String testClass)Suggested test command for a Maven module. final StringcargoTestCommand()Suggested test command for the Rust CLI. final List<String>getMODULES()Known modules (module dirs containing a real pom.xml, incl. final Map<String, List<String>>getDEPENDENTS()module -> modules that directly depend on it (reverse edges from the real poms). -
-
Method Detail
-
transitiveDependents
final List<String> transitiveDependents(String module)
All modules transitively affected when module changes (module + its direct dependents, transitively closed). Static fallback — the coding domain prefers ModuleGraph.transitiveDependents on the live graph.
-
mavenTestCommand
final String mavenTestCommand(String module, String testClass)
Suggested test command for a Maven module.
- Parameters:
testClass- optional test-class filter (-Dtest=..., comma-separated for multiple) — the smallest scope when the task names specific tests.
-
cargoTestCommand
final String cargoTestCommand()
Suggested test command for the Rust CLI.
-
getMODULES
final List<String> getMODULES()
Known modules (module dirs containing a real pom.xml, incl. aggregators).
-
getDEPENDENTS
final Map<String, List<String>> getDEPENDENTS()
module -> modules that directly depend on it (reverse edges from the real poms).
-
-
-
-