org.schmant.task.stub
Class AbstractProcessTaskFactory<T extends AbstractProcessTaskFactory<T,U>,U extends ProcessTaskSpec<U>>

java.lang.Object
  extended by org.schmant.task.stub.AbstractTaskFactory<T,U>
      extended by org.schmant.task.stub.AbstractActionTaskFactory<T,U>
          extended by org.schmant.task.stub.AbstractProcessTaskFactory<T,U>
All Implemented Interfaces:
ActionTaskConfigurable<T>, ActionTaskFactory<T,U>, LoggingConfigurable<T>, OverwriteConfigurable<T>, SourceConfigurable<T>, TargetConfigurable<T>, GeneratorTaskConfigurable<T>, GeneratorTaskFactory<T,U>, ProcessTaskConfigurable<T>, ProcessTaskFactory<T,U>, TaskFactory<T,U>, TaskRunnable
Direct Known Subclasses:
AbstractAddTextTaskFactory, AbstractJavacTaskFactory, AbstractProxyTaskFactory, AbstractTextInsertionTaskFactory, AbstractZipTaskFactory, At4JUnzipTF, BZip2TF, CopyTF, FormatCharacterFileTF, GZipTF, LzmaTF, MoveTF, SchmantTaskrefTF, TarTF, TreeCopyTF, UntarTF, XsltTF

public abstract class AbstractProcessTaskFactory<T extends AbstractProcessTaskFactory<T,U>,U extends ProcessTaskSpec<U>>
extends AbstractActionTaskFactory<T,U>
implements ProcessTaskFactory<T,U>

This is a starting point for ProcessTaskFactory implementations.

Since:
0.5
Author:
Karl Gustafsson

Field Summary
 
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable
DEFAULT_OVERWRITE_STRATEGY
 
Constructor Summary
AbstractProcessTaskFactory()
           
 
Method Summary
 T setOverwrite(boolean b)
          Should things be overwritten? If this is set to true, it is equivalent to setting the overwrite strategy to DoOverwriteAndLogWarning.
 T setOverwriteStrategy(OverwriteStrategy strat)
          Set a strategy for how to react to existing entities in locations where the task wants to write.
 T setTarget(Object o)
          Set the target.
 
Methods inherited from class org.schmant.task.stub.AbstractActionTaskFactory
addSource, addSources, clearSources, setRelativeToBase, setSource, setSources
 
Methods inherited from class org.schmant.task.stub.AbstractTaskFactory
copy, create, createSpecification, getLastCreated, getSpecification, getThis, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.schmant.task.TaskFactory
copy, create, getLastCreated, getSpecification
 
Methods inherited from interface org.schmant.task.confable.LoggingConfigurable
setLogFooter, setLogHeader, setReportLevel, setTraceLogging
 
Methods inherited from interface org.schmant.task.TaskRunnable
run
 
Methods inherited from interface org.schmant.task.confable.SourceConfigurable
addSource, addSources, clearSources, setRelativeToBase, setSource, setSources
 

Constructor Detail

AbstractProcessTaskFactory

public AbstractProcessTaskFactory()
Method Detail

setTarget

public final T setTarget(Object o)
Description copied from interface: TargetConfigurable
Set the target.

Specified by:
setTarget in interface TargetConfigurable<T extends AbstractProcessTaskFactory<T,U>>
Parameters:
o - The target.
Returns:
this

setOverwrite

public final T setOverwrite(boolean b)
Description copied from interface: OverwriteConfigurable
Should things be overwritten? If this is set to true, it is equivalent to setting the overwrite strategy to DoOverwriteAndLogWarning. If this is set to false, it is equivalent to setting the overwrite strategy to DontOverwriteAndLogWarning.

Specified by:
setOverwrite in interface OverwriteConfigurable<T extends AbstractProcessTaskFactory<T,U>>
Parameters:
b - Should things be overwritten?
Returns:
this

setOverwriteStrategy

public final T setOverwriteStrategy(OverwriteStrategy strat)
Description copied from interface: OverwriteConfigurable
Set a strategy for how to react to existing entities in locations where the task wants to write.

Specified by:
setOverwriteStrategy in interface OverwriteConfigurable<T extends AbstractProcessTaskFactory<T,U>>
Parameters:
strat - The overwrite strategy.
Returns:
this