| Modifier and Type | Class and Description |
|---|---|
static class |
Task.State
The
Task.State of a task. |
| Constructor and Description |
|---|
Task() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStateListener(TaskStateListener listener)
Adds a
TaskStateListener. |
Void |
call() |
abstract void |
execute()
Executes the
Task. |
Exception |
getException()
|
Collection<com.google.inject.Module> |
getModules()
Returns a copy of the
Modules of this Task. |
Task.State |
getState()
Returns the state of the
Task. |
void |
init(Collection<com.google.inject.Module> modules)
Initializes the
Task with modules. |
void |
init(com.google.inject.Module... modules)
Initializes the
Task with modules. |
void |
removeStateListener(TaskStateListener listener)
Removes a
TaskStateListener. |
String |
toString() |
public void init(com.google.inject.Module... modules)
Task with modules.modules - the modules for the taskinit(Collection)public void init(Collection<com.google.inject.Module> modules)
Task with modules. Note that if a module is a
PropertyModule, a copy is made with the
PropertyModule.clone() method. If the Module is not a
PropertyModule, the module is copied as a reference, i.e., it can
be changed until the execute() is called.modules - the modules for the taskpublic Exception getException()
public Task.State getState()
Task.public void addStateListener(TaskStateListener listener)
TaskStateListener.listener - the listener to be addedremoveStateListener(org.opt4j.config.TaskStateListener)public void removeStateListener(TaskStateListener listener)
TaskStateListener.listener - the listener to be removedaddStateListener(org.opt4j.config.TaskStateListener)public Collection<com.google.inject.Module> getModules()
Modules of this Task.