davsclaus opened a new pull request, #24058:
URL: https://github.com/apache/camel/pull/24058

   ## Summary
   
   - Adds `dumpRouteAsJava(boolean resolvePlaceholders, boolean generatedIds)` 
overload to `ManagedRouteMBean` and `ManagedCamelContextMBean`
   - Updates `RouteDumpDevConsole` to pass `generatedIds=false` for Java format 
(matching XML/YAML behavior)
   - Auto-generated node IDs like `.id("setBody1")` and `.id("log1")` are no 
longer included in Java DSL dump output
   
   **Before:**
   ```java
   from("timer:tick?period=1000")
       .routeId("timer-log")
       .setBody(simple("Hello Camel!"))
           .id("setBody1")
       .log("${body}")
           .id("log1");
   ```
   
   **After:**
   ```java
   from("timer:tick?period=1000")
       .routeId("timer-log")
       .setBody(simple("Hello Camel!"))
       .log("${body}");
   ```
   
   ## Test plan
   
   - [ ] `camel cmd route-dump --format=java` should not include auto-generated 
IDs
   - [ ] TUI source viewer `J` key should show clean Java DSL without generated 
IDs
   - [ ] User-assigned IDs (e.g., `.routeId("timer-log")`) are still included
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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]

Reply via email to