Package cn.boboweike.carrot.tasks
Class TaskParameter
- java.lang.Object
-
- cn.boboweike.carrot.tasks.TaskParameter
-
public class TaskParameter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static TaskParameterTaskContext
-
Constructor Summary
Constructors Constructor Description TaskParameter(Class<?> clazz, Object object)TaskParameter(Object object)TaskParameter(String className, Object object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActualClassName()Represents the actual class name of the task parameter (e.g.StringgetClassName()Represents the class name expected by the task method (e.g.ObjectgetObject()The actual task parameter
-
-
-
Field Detail
-
TaskContext
public static final TaskParameter TaskContext
-
-
Method Detail
-
getClassName
public String getClassName()
Represents the class name expected by the task method (e.g. an object or an interface)- Returns:
- the class name expected by the task method (e.g. an object or an interface)
-
getActualClassName
public String getActualClassName()
Represents the actual class name of the task parameter (e.g. an object), this will never be an interface- Returns:
- the actual class name of the task parameter (e.g. an object), this will never be an interface
-
getObject
public Object getObject()
The actual task parameter- Returns:
- the actual task parameter
-
-