From 31fa14f3a99c16937975b3e2b3d638d417e33129 Mon Sep 17 00:00:00 2001 From: scauwe Date: Tue, 11 Dec 2018 22:20:34 +0100 Subject: [PATCH] Added comments. --- .../filedriver/filestart/QuartzUtil.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/shim/src/main/java/info/vancauwenberge/filedriver/filestart/QuartzUtil.java b/shim/src/main/java/info/vancauwenberge/filedriver/filestart/QuartzUtil.java index d1ba0b6..d15bac9 100644 --- a/shim/src/main/java/info/vancauwenberge/filedriver/filestart/QuartzUtil.java +++ b/shim/src/main/java/info/vancauwenberge/filedriver/filestart/QuartzUtil.java @@ -32,6 +32,17 @@ * */ public class QuartzUtil { + /** + * Initialize quartz in another class to avoid imports of quartz when no + * used. + * + * @param trace + * @param cronExpression + * @param subscriber + * @param callabck + * @return + * @throws Exception + */ static org.quartz.Scheduler initQuartz(Trace trace, String cronExpression, ISubscriberShim subscriber, BasicNewFileDecider callabck) throws Exception { trace.trace("Initializing quartz for cron (if required)", TraceLevel.TRACE);