You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/01/23 10:40:32 UTC

(camel) branch main updated: CAMEL-21359: camel-spring-boot - Add support for MainListener

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

davsclaus 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 1f9f890917e CAMEL-21359: camel-spring-boot - Add support for MainListener
1f9f890917e is described below

commit 1f9f890917ea405b25a0f9896ca8784aefcbf794
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jan 23 11:05:48 2025 +0100

    CAMEL-21359: camel-spring-boot - Add support for MainListener
---
 .../src/main/java/org/apache/camel/main/BaseMainSupport.java       | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
index f28e63a4238..99408899ebc 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
@@ -308,6 +308,13 @@ public abstract class BaseMainSupport extends BaseService {
         listeners.remove(listener);
     }
 
+    /**
+     * Gets the {@link MainListener}.
+     */
+    public List<MainListener> getMainListeners() {
+        return Collections.unmodifiableList(listeners);
+    }
+
     protected void loadCustomBeans(CamelContext camelContext) throws Exception {
         // auto-detect custom beans via base package scanning
         String basePackage = camelContext.getCamelContextExtension().getBasePackageScan();