This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new a8d964680214 chore(core): main BacklogDebugger autocloseable note
a8d964680214 is described below

commit a8d964680214d0754236b86bb16d484d6047baa9
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Thu Nov 27 09:13:16 2025 +0100

    chore(core): main BacklogDebugger autocloseable note
---
 .../java/org/apache/camel/main/DefaultConfigurationConfigurer.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
 
b/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
index 311b7dfedbff..7ee837ca6ca7 100644
--- 
a/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
+++ 
b/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
@@ -696,7 +696,9 @@ public final class DefaultConfigurationConfigurer {
         camelContext.setDebugging(config.isEnabled());
         camelContext.setDebugStandby(config.isStandby());
 
-        BacklogDebugger debugger = 
DefaultBacklogDebugger.createDebugger(camelContext);
+        // NOTE: BacklogDebugger is autocloseable. It is added as a Service to 
the context.
+        // The context will be in charge to suspend and close it according the 
its lifecycle.
+        BacklogDebugger debugger = 
DefaultBacklogDebugger.createDebugger(camelContext); // NOSONAR
         debugger.setEnabled(config.isEnabled());
         debugger.setStandby(config.isStandby());
         debugger.setInitialBreakpoints(config.getBreakpoints());

Reply via email to