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 e21f8270c72 CAMEL-16592: camel-api - CamelContextAware should extend HasCamelContext (#10810) e21f8270c72 is described below commit e21f8270c72985471c7d398e7e32291c1276fb5d Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Jul 25 08:51:53 2023 +0200 CAMEL-16592: camel-api - CamelContextAware should extend HasCamelContext (#10810) --- .../src/main/java/org/apache/camel/CamelContextAware.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/core/camel-api/src/main/java/org/apache/camel/CamelContextAware.java b/core/camel-api/src/main/java/org/apache/camel/CamelContextAware.java index f5865f82f8b..e94ab034425 100644 --- a/core/camel-api/src/main/java/org/apache/camel/CamelContextAware.java +++ b/core/camel-api/src/main/java/org/apache/camel/CamelContextAware.java @@ -16,10 +16,12 @@ */ package org.apache.camel; +import org.apache.camel.spi.HasCamelContext; + /** * An interface to represent an object which wishes to be injected with the {@link CamelContext} */ -public interface CamelContextAware { +public interface CamelContextAware extends HasCamelContext { /** * Set the {@link CamelContext} context if the object is an instance of {@link CamelContextAware}. @@ -32,13 +34,6 @@ public interface CamelContextAware { return object; } - /** - * Get the {@link CamelContext} - * - * @return the Camel context - */ - CamelContext getCamelContext(); - /** * Injects the {@link CamelContext} *