org.schmant.task.stub
Class AbstractProcessTaskFactory<T extends AbstractProcessTaskFactory<T,U>,U extends ProcessTaskSpec<U>>
java.lang.Object
org.schmant.task.stub.AbstractTaskFactory<T,U>
org.schmant.task.stub.AbstractActionTaskFactory<T,U>
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
Methods inherited from class org.schmant.task.stub.AbstractTaskFactory |
copy, create, createSpecification, getLastCreated, getSpecification, getThis, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging, toString |
AbstractProcessTaskFactory
public AbstractProcessTaskFactory()
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