TaskManagerFactoryImpl.java
1.11 KB
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.granite.taskmanagement.Task
* com.adobe.granite.taskmanagement.TaskAction
* com.adobe.granite.taskmanagement.TaskManagerException
* com.adobe.granite.taskmanagement.TaskManagerFactory
*/
package com.adobe.granite.taskmanagement.impl.service;
import com.adobe.granite.taskmanagement.Task;
import com.adobe.granite.taskmanagement.TaskAction;
import com.adobe.granite.taskmanagement.TaskManagerException;
import com.adobe.granite.taskmanagement.TaskManagerFactory;
import com.adobe.granite.taskmanagement.impl.TaskActionImpl;
import com.adobe.granite.taskmanagement.impl.TaskImpl;
public class TaskManagerFactoryImpl
implements TaskManagerFactory {
public Task newTask(String taskTypeName) throws TaskManagerException {
if (null == taskTypeName) {
taskTypeName = "default";
}
TaskImpl task = new TaskImpl();
task.setTaskTypeName(taskTypeName);
return task;
}
public TaskAction newTaskAction(String taskActionId) {
return new TaskActionImpl(taskActionId);
}
}