CAMEL-6426: Polished javadoc to be more accurate.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7bfe9df6 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7bfe9df6 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7bfe9df6 Branch: refs/heads/camel-2.10.x Commit: 7bfe9df6adaa459527bac4b8d800224bfe76e650 Parents: ffd479d Author: Claus Ibsen <davscl...@apache.org> Authored: Wed Jun 5 15:23:55 2013 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Jun 5 15:26:45 2013 +0200 ---------------------------------------------------------------------- .../java/org/apache/camel/StartupListener.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/7bfe9df6/camel-core/src/main/java/org/apache/camel/StartupListener.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/StartupListener.java b/camel-core/src/main/java/org/apache/camel/StartupListener.java index da5daec..a797d44 100644 --- a/camel-core/src/main/java/org/apache/camel/StartupListener.java +++ b/camel-core/src/main/java/org/apache/camel/StartupListener.java @@ -17,12 +17,15 @@ package org.apache.camel; /** - * Allows objects to be notified when {@link CamelContext} has just been started. + * Allows objects to be notified when {@link CamelContext} has done all work when starting. * <p/> - * This can be used to perform any custom work when the entire {@link CamelContext} has been initialized and started. - * For example this ensures that all Camel routes have been started and are up and running, before this callback + * This can be used to perform any custom work when the entire {@link CamelContext} has been initialized and <b>almost</b> + * started. For example this ensures that all Camel routes have been started and are up and running, before this callback * is invoked. * <p/> + * The state of {@link CamelContext} may still be in <tt>starting</tt> when this callback is invoked, this is by design. + * The callback is invoked as the last step during all the processes that occur during starting {@link CamelContext}. + * <p/> * For example the QuartzComponent leverages this to ensure the Quartz scheduler does not start until after all the * Camel routes and services have already been started. *