This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch hcc in repository https://gitbox.apache.org/repos/asf/camel.git
commit b38050123ca89c4f04eab90d21131eea3873b1e6 Author: Claus Ibsen <[email protected]> AuthorDate: Mon Jul 24 20:10:40 2023 +0200 CAMEL-16592: camel-api - CamelContextAware should extend HasCamelContext --- .../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} *
