public class PojoTaskWrapper
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.reflect.Method | cancelmethodThe cancel method. | 
| protected java.lang.Object | pojotaskThe pojo task. | 
| protected java.util.Map<java.lang.String,FieldInfo> | resinjectionsThe resinjections. | 
| Constructor and Description | 
|---|
| PojoTaskWrapper()Bean constructor. | 
| PojoTaskWrapper(java.lang.Object pojotask,
               IInternalAccess ia,
               ProcessThread thread,
               java.util.List<FieldInfo> cominjections,
               java.util.Map<java.lang.String,java.util.List<FieldInfo>> arginjections,
               java.util.Map<java.lang.String,FieldInfo> resinjections)Create a new wrapper task. | 
| Modifier and Type | Method and Description | 
|---|---|
| IFuture<java.lang.Void> | cancel(IInternalAccess process)Cleanup in case the task is cancelled. | 
| IFuture<java.lang.Void> | execute(ITaskContext context,
       IInternalAccess process)Execute the task. | 
| java.lang.reflect.Method | getCancelMethod()Get the cancelmethod. | 
| java.lang.Object | getPojoTask()Get the pojotask. | 
| java.util.Map<java.lang.String,FieldInfo> | getResultInjections()Get the resinjections. | 
| java.lang.Object[] | guessParameters(java.lang.Class<?>[] ptypes,
               java.util.Set<java.lang.Object> vals)Method that tries to guess the parameters for the method call. | 
| void | setCancelMethod(java.lang.reflect.Method cancelmethod)Set the cancelmethod. | 
| void | setPojoTask(java.lang.Object pojotask)Set the pojotask. | 
| void | setResultInjections(java.util.Map<java.lang.String,FieldInfo> resinjections)Set the resinjections. | 
| protected void | setResults(boolean noret,
          java.lang.Object result,
          ITaskContext context,
          IInternalAccess process)Set the results. | 
protected java.lang.Object pojotask
protected java.lang.reflect.Method cancelmethod
protected java.util.Map<java.lang.String,FieldInfo> resinjections
public PojoTaskWrapper()
public PojoTaskWrapper(java.lang.Object pojotask,
                       IInternalAccess ia,
                       ProcessThread thread,
                       java.util.List<FieldInfo> cominjections,
                       java.util.Map<java.lang.String,java.util.List<FieldInfo>> arginjections,
                       java.util.Map<java.lang.String,FieldInfo> resinjections)
public IFuture<java.lang.Void> execute(ITaskContext context, IInternalAccess process)
context - The accessible values.process - The process instance executing the task.public IFuture<java.lang.Void> cancel(IInternalAccess process)
public java.lang.Object[] guessParameters(java.lang.Class<?>[] ptypes,
                                          java.util.Set<java.lang.Object> vals)
protected void setResults(boolean noret,
                          java.lang.Object result,
                          ITaskContext context,
                          IInternalAccess process)
public java.lang.Object getPojoTask()
public void setPojoTask(java.lang.Object pojotask)
pojotask - The pojotask to set.public java.lang.reflect.Method getCancelMethod()
public void setCancelMethod(java.lang.reflect.Method cancelmethod)
cancelmethod - The cancelmethod to set.public java.util.Map<java.lang.String,FieldInfo> getResultInjections()
public void setResultInjections(java.util.Map<java.lang.String,FieldInfo> resinjections)
resinjections - The resinjections to set.