Repository: camel Updated Branches: refs/heads/master 973b8b3f7 -> bc42c3138
Fix logger initialization in QuartzHelper to the right class, in order to avoid misleading logentries. Also added some javadoc Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/bc42c313 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bc42c313 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bc42c313 Branch: refs/heads/master Commit: bc42c31387e272b70f2418debbb1601519b44d0f Parents: 973b8b3 Author: Steffen Ryll <sr...@users.noreply.github.com> Authored: Tue Sep 23 10:33:48 2014 +0200 Committer: Steffen Ryll <sr...@users.noreply.github.com> Committed: Tue Sep 23 10:33:48 2014 +0200 ---------------------------------------------------------------------- .../org/apache/camel/component/quartz2/QuartzHelper.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/bc42c313/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/QuartzHelper.java ---------------------------------------------------------------------- diff --git a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/QuartzHelper.java b/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/QuartzHelper.java index bb6db52..7263bae 100644 --- a/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/QuartzHelper.java +++ b/components/camel-quartz2/src/main/java/org/apache/camel/component/quartz2/QuartzHelper.java @@ -24,9 +24,10 @@ import org.slf4j.LoggerFactory; public final class QuartzHelper { - public static final Logger LOG = LoggerFactory.getLogger(QuartzEndpoint.class); + public static final Logger LOG = LoggerFactory.getLogger(QuartzHelper.class); private QuartzHelper() { + // prevent instantiation } public static String getQuartzContextName(CamelContext camelContext) { @@ -38,6 +39,14 @@ public final class QuartzHelper { } } + /** + * Adds the current CamelContext name and endpoint URI to the Job's jobData + * map. + * + * @param camelContext The currently active camelContext + * @param jobDetail The job for which the jobData map shall be updated + * @param endpointUri URI of the endpoint name, if any. May be {@code null} + */ public static void updateJobDataMap(CamelContext camelContext, JobDetail jobDetail, String endpointUri) { // Store this camelContext name into the job data JobDataMap jobDataMap = jobDetail.getJobDataMap();