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/08/06 09:02:55 UTC

[camel] 01/02: Polished

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

commit 015dbc19ce3592aa6f7c4bb75cd9ddb6f33d944a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Aug 6 10:23:53 2019 +0200

    Polished
---
 .../src/main/java/org/apache/camel/spi/CamelContextTracker.java   | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/core/camel-api/src/main/java/org/apache/camel/spi/CamelContextTracker.java b/core/camel-api/src/main/java/org/apache/camel/spi/CamelContextTracker.java
index 7318db5..8015dc3 100644
--- a/core/camel-api/src/main/java/org/apache/camel/spi/CamelContextTracker.java
+++ b/core/camel-api/src/main/java/org/apache/camel/spi/CamelContextTracker.java
@@ -26,7 +26,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * A {@link CamelContext} creation tracker.
+ * A {@link CamelContext} creation and destruction tracker.
  */
 public class CamelContextTracker implements Closeable {
 
@@ -76,10 +76,16 @@ public class CamelContextTracker implements Closeable {
         // do nothing
     }
 
+    /**
+     * Opens the tracker to start tracking when new {@link CamelContext} is created or destroyed.
+     */
     public final void open() {
         TRACKERS.add(this);
     }
 
+    /**
+     * Closes the tracker so it not longer tracks.
+     */
     @Override
     public final void close() {
         TRACKERS.remove(this);