davsclaus opened a new pull request, #24052: URL: https://github.com/apache/camel/pull/24052
## Summary Wires the Java DSL model writer (from CAMEL-23757) through the entire dump infrastructure so `camel cmd route-dump --format=java` works end-to-end. **Changes across layers:** - **SPI**: New `ModelToJavaDumper` interface (mirrors `ModelToYAMLDumper`) - **Implementation**: `LwModelToJavaDumper` in `camel-java-io` with `@JdkService` discovery - **Plugin registration**: `AbstractCamelContext` + `SimpleCamelContext` factory (mandatory resolution, same as YAML) - **PluginHelper**: `getModelToJavaDumper()` accessor methods - **MBean API**: `dumpRouteAsJava()` / `dumpRoutesAsJava()` on `ManagedRouteMBean` / `ManagedCamelContextMBean` - **MBean impl**: `ManagedRoute` + `ManagedCamelContext` implementations - **DevConsole**: `RouteDumpDevConsole` supports `format=java` (text + JSON output) - **CLI**: `camel cmd route-dump --format=java` (added to format candidates) - **MCP**: `RuntimeTools` updated to accept java format - **Startup dump**: `DefaultDumpRoutesStrategy` supports `camel.main.dumpRoutes=java` - **Dependencies**: `camel-java-io` added to BOM, parent pom, and `camel-kamelet-main` - **Docs**: Updated Javadoc and generated docs to mention Java format _Claude Code on behalf of Claus Ibsen_ ## Test plan - [ ] All modules compile: `camel-api`, `camel-support`, `camel-base-engine`, `camel-core-engine`, `camel-management-api`, `camel-management`, `camel-console`, `camel-java-io`, `camel-main`, `camel-kamelet-main`, `camel-jbang-core`, `camel-jbang-mcp` - [ ] Test with `camel cmd route-dump --format=java` against a running Camel app - [ ] Test `camel.main.dumpRoutes=java` startup dump -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
