You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/06/16 12:43:08 UTC

[PR] CAMEL-23771: Add Java DSL dump support to SPI, JMX, DevConsole, CLI, and MCP [camel]

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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23771: Add Java DSL dump support to SPI, JMX, DevConsole, CLI, and MCP [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #24052:
URL: https://github.com/apache/camel/pull/24052


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23771: Add Java DSL dump support to SPI, JMX, DevConsole, CLI, and MCP [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24052:
URL: https://github.com/apache/camel/pull/24052#issuecomment-4718857259

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org