Commits

Zemian Deng committed 4ddb00d

Minor clean up.

Comments (0)

Files changed (1)

timemachine-scheduler/src/main/java/timemachine/scheduler/userservice/JobLoaderService.java

 	public void onScheduler(Scheduler scheduler) {
 		this.scheduler = scheduler;
 	}
-	
-	/** Allow user any load jobs in configUrl into a scheduler on demand. */
+
+	/** Allow user to use this service programmatically as static utility. */
 	public static void load(Scheduler scheduler, String configUrl) {
 		Props props = new Props(configUrl);
-		JobLoaderService loader = new JobLoaderService();
-		loader.onScheduler(scheduler);
-		loader.onConfigProps(props);
-		loader.init();
+		JobLoaderService service = new JobLoaderService();
+		service.onScheduler(scheduler);
+		service.onConfigProps(props);
+		service.init();
 	}
 }