1 18 19 package cowsultants.itracker.web.scheduler; 20 21 import java.util.*; 22 23 26 public class SchedulerUtilities { 27 public static final String TASK_CLASS_REMINDER = "cowsultants.itracker.web.scheduler.tasks.ReminderNotification"; 28 public static final String TASK_KEY_REMINDER = "itracker.web.admin.scheduler.task.reminder"; 29 30 private static HashMap definedTasks; 31 32 static { 33 definedTasks = new HashMap(); 34 definedTasks.put(TASK_CLASS_REMINDER, TASK_KEY_REMINDER); 35 } 36 37 public SchedulerUtilities() { 38 } 39 40 44 public static HashMap getDefinedTasks() { 45 return definedTasks; 46 } 47 48 49 54 public static String getClassKey(String className) { 55 if(definedTasks.containsKey(className)) { 56 return (String ) definedTasks.get(className); 57 } 58 return null; 59 } 60 } 61 | Popular Tags |