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 2019/03/01 08:45:31 UTC
[camel] branch master updated: Add javadoc
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 7a9aad3 Add javadoc
7a9aad3 is described below
commit 7a9aad37f00fc7d9dc6992caa6426105e6132278
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Mar 1 09:45:02 2019 +0100
Add javadoc
---
.../src/main/java/org/apache/camel/CamelContext.java | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/core/camel-api/src/main/java/org/apache/camel/CamelContext.java b/core/camel-api/src/main/java/org/apache/camel/CamelContext.java
index bea0daf..93348d0 100644
--- a/core/camel-api/src/main/java/org/apache/camel/CamelContext.java
+++ b/core/camel-api/src/main/java/org/apache/camel/CamelContext.java
@@ -108,9 +108,20 @@ public interface CamelContext extends SuspendableService, RuntimeConfiguration {
*/
<T extends CamelContext> T adapt(Class<T> type);
- // TODO: Document these methods
+ /**
+ * Gets the extension of the given type.
+ *
+ * @param type the type of the extension
+ * @return the extension, or <tt>null</tt> if no extension has been installed.
+ */
<T> T getExtension(Class<T> type);
+ /**
+ * Allows to install custom extensions to the Camel context.
+ *
+ * @param type the type of the extension
+ * @param module the instance of the extension
+ */
<T> void setExtension(Class<T> type, T module);
/**