(String taskName)
| 90 | } |
| 91 | |
| 92 | public boolean cancelTask(String taskName) { |
| 93 | Task task = this.annotations.get(taskName); |
| 94 | if (task == null) return false; |
| 95 | try { |
| 96 | this.unregisterTask(this.tasks.get(taskName)); |
| 97 | } catch (Exception e) { |
| 98 | e.printStackTrace(); |
| 99 | return false; |
| 100 | } |
| 101 | return true; |
| 102 | } |
| 103 | |
| 104 | public TaskMap registerTask(String taskName, TaskHandler task) { |
| 105 | Task annotation = task.getClass().getAnnotation(Task.class); |
nothing calls this directly
no test coverage detected