Package org.jobrunr.jobs
Class JobParameter
- java.lang.Object
-
- org.jobrunr.jobs.JobParameter
-
public class JobParameter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static JobParameter
JobContext
-
Constructor Summary
Constructors Constructor Description JobParameter(java.lang.Class<?> clazz, java.lang.Object object)
JobParameter(java.lang.Object object)
JobParameter(java.lang.String className, java.lang.Object object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getActualClassName()
Represents the actual class name of the job parameter (e.g.java.lang.String
getClassName()
Represents the class name expected by the job method (e.g.java.lang.Object
getObject()
The actual job parameter
-
-
-
Field Detail
-
JobContext
public static final JobParameter JobContext
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
Represents the class name expected by the job method (e.g. an object or an interface)- Returns:
- the class name expected by the job method (e.g. an object or an interface)
-
getActualClassName
public java.lang.String getActualClassName()
Represents the actual class name of the job parameter (e.g. an object), this will never be an interface- Returns:
- the actual class name of the job parameter (e.g. an object), this will never be an interface
-
getObject
public java.lang.Object getObject()
The actual job parameter- Returns:
- the actual job parameter
-
-