org.schmant.task.proxy
Class ErrorIgnoringTask

java.lang.Object
  extended by org.schmant.support.AbstractArgumentChecker
      extended by org.schmant.task.stub.AbstractTask<T>
          extended by org.schmant.task.stub.AbstractActionTask<T>
              extended by org.schmant.task.stub.AbstractProcessTask<T>
                  extended by org.schmant.task.template.proxy.AbstractProxyTask<ErrorIgnoringTask>
                      extended by org.schmant.task.proxy.ErrorIgnoringTask
All Implemented Interfaces:
Producer<Object>, TaskDependency, ActionTaskConfigurable<ErrorIgnoringTask>, ActionTaskSpec<ErrorIgnoringTask>, LoggingConfigurable<ErrorIgnoringTask>, OverwriteConfigurable<ErrorIgnoringTask>, SourceConfigurable<ErrorIgnoringTask>, SourceConfigured, TargetConfigurable<ErrorIgnoringTask>, TargetConfigured, GeneratorTaskConfigurable<ErrorIgnoringTask>, GeneratorTaskSpec<ErrorIgnoringTask>, ProcessTaskConfigurable<ErrorIgnoringTask>, ProcessTaskSpec<ErrorIgnoringTask>, Task, TaskRunnable, TaskSpecification<ErrorIgnoringTask>

public final class ErrorIgnoringTask
extends AbstractProxyTask<ErrorIgnoringTask>
implements Producer<Object>

See ErrorIgnoringTF

Since:
0.5
Author:
Karl Gustafsson
Task_package:
org.schmant.task.base

Field Summary
 
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable
DEFAULT_OVERWRITE_STRATEGY
 
Method Summary
 void copyProperties(ErrorIgnoringTask spec)
          Override the implementation from AbstractTask to copy the source properties.
 Object get()
          Returns the produced object, or null if nothing is produced yet.
protected  void runInternal(Report r)
          Subclasses implement this.
 String toString()
          Default implementation for tasks.
 
Methods inherited from class org.schmant.task.template.proxy.AbstractProxyTask
createAndConfigureProxiedTask, disableLoggingIfOwnLoggingIsDisabled, getDefaultLogHeader, getTaskFactory, isSourcesMandatory, isTargetMandatory, validate
 
Methods inherited from class org.schmant.task.stub.AbstractProcessTask
getOverwriteStrategy, getTarget, setOverwrite, setOverwriteStrategy, setTarget
 
Methods inherited from class org.schmant.task.stub.AbstractActionTask
addSource, addSources, clearSources, getRelativeToBase, getSource, getSources, isMoreThanOneSourceAllowed, setRelativeToBase, setSource, setSources
 
Methods inherited from class org.schmant.task.stub.AbstractTask
cancel, createTask, getDefaultLogFooter, getDependencyForTasksScheduledByThisTask, 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.confable.SourceConfigurable
addSource, addSources, clearSources, setRelativeToBase, setSource, setSources
 
Methods inherited from interface org.schmant.task.confable.SourceConfigured
getSource, getSources
 
Methods inherited from interface org.schmant.task.TaskSpecification
createTask
 
Methods inherited from interface org.schmant.task.confable.LoggingConfigurable
setLogFooter, setLogHeader, setReportLevel, setTraceLogging
 

Method Detail

get

public Object get()
Description copied from interface: Producer
Returns the produced object, or null if nothing is produced yet.

This method should be implemented thread-safe.

Specified by:
get in interface Producer<Object>
Returns:
The produced object.

runInternal

protected void runInternal(Report r)
Description copied from class: AbstractTask
Subclasses implement this. The task is AbstractTask.validate(Report):d before this method is called, see AbstractTask.run().

Specified by:
runInternal in class AbstractTask<ErrorIgnoringTask>
Parameters:
r - The current thread's Report.

copyProperties

public void copyProperties(ErrorIgnoringTask spec)
Description copied from class: AbstractActionTask
Override the implementation from AbstractTask to copy the source properties. Subclasses must override this to copy their own properties.

Specified by:
copyProperties in interface TaskSpecification<ErrorIgnoringTask>
Overrides:
copyProperties in class AbstractProxyTask<ErrorIgnoringTask>
Parameters:
spec - The specification to copy properties to.

toString

public String toString()
Description copied from class: AbstractTask
Default implementation for tasks. Task implementations may override this. It is used in the default log header that is written (level INFO) before a task is run.

This implementation just returns the class name.

Overrides:
toString in class AbstractProcessTask<ErrorIgnoringTask>