|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.schmant.support.AbstractArgumentChecker
org.schmant.task.stub.AbstractTask<T>
org.schmant.task.stub.AbstractActionTask<ForEachSourceTask>
org.schmant.task.meta.ForEachSourceTask
public final class ForEachSourceTask
See ForEachSourceTF
| Method Summary | |
|---|---|
void |
copyProperties(ForEachSourceTask spec)
Override the implementation from AbstractTask to copy the
source properties. |
TaskDependency |
getDependencyForTasksScheduledByThisTask()
This implementation returns this. |
protected boolean |
isMoreThanOneSourceAllowed()
Is more than one source object allowed? This method returns false
. |
protected void |
runInternal(Report r)
Subclasses implement this. |
String |
toString()
Default implementation for tasks. |
protected Collection<String> |
validate(Report r)
Override the method inherited from AbstractTask to give a validation
error if no source is set (and AbstractActionTask.isSourcesMandatory() is true). |
| Methods inherited from class org.schmant.task.stub.AbstractActionTask |
|---|
addSource, addSources, clearSources, getRelativeToBase, getSource, getSources, isSourcesMandatory, setRelativeToBase, setSource, setSources |
| Methods inherited from class org.schmant.task.stub.AbstractTask |
|---|
cancel, createTask, getDefaultLogFooter, getDefaultLogHeader, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
| Methods inherited from class org.schmant.support.AbstractArgumentChecker |
|---|
check, check, check, check |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.schmant.task.TaskSpecification |
|---|
createTask |
| Methods inherited from interface org.schmant.task.confable.LoggingConfigurable |
|---|
setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
| Method Detail |
|---|
protected boolean isMoreThanOneSourceAllowed()
AbstractActionTaskfalse
. Subclasses override this method to return true if they
allow several sources.
This method will only be called if AbstractActionTask.isSourcesMandatory() returns
true.
isMoreThanOneSourceAllowed in class AbstractActionTask<ForEachSourceTask>trueprotected Collection<String> validate(Report r)
AbstractActionTaskAbstractTask to give a validation
error if no source is set (and AbstractActionTask.isSourcesMandatory() is true).
Subclasses may override this to add their own validations.
validate in class AbstractActionTask<ForEachSourceTask>r - A report to log warning and debug messages to. Validation errors
should not be logged, though. They are logged later.
protected void runInternal(Report r)
AbstractTaskAbstractTask.validate(Report):d before
this method is called, see AbstractTask.run().
runInternal in class AbstractTask<ForEachSourceTask>r - The current thread's Report.public TaskDependency getDependencyForTasksScheduledByThisTask()
AbstractTaskthis. Subclasses that use
TaskExecutor:s must override this method to
return a dependency object for all of its scheduled tasks.
getDependencyForTasksScheduledByThisTask in interface TaskgetDependencyForTasksScheduledByThisTask in class AbstractTask<ForEachSourceTask>thispublic void copyProperties(ForEachSourceTask spec)
AbstractActionTaskAbstractTask to copy the
source properties. Subclasses must override this to copy their own
properties.
copyProperties in interface TaskSpecification<ForEachSourceTask>copyProperties in class AbstractActionTask<ForEachSourceTask>spec - The specification to copy properties to.public String toString()
AbstractTaskThis implementation just returns the class name.
toString in class AbstractActionTask<ForEachSourceTask>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||