org.schmant.task.stub
Class AbstractGeneratorTaskFactory<T extends AbstractGeneratorTaskFactory<T,U>,U extends GeneratorTaskSpec<U>>
java.lang.Object
org.schmant.task.stub.AbstractTaskFactory<T,U>
org.schmant.task.stub.AbstractGeneratorTaskFactory<T,U>
- All Implemented Interfaces:
- LoggingConfigurable<T>, OverwriteConfigurable<T>, TargetConfigurable<T>, GeneratorTaskConfigurable<T>, GeneratorTaskFactory<T,U>, TaskFactory<T,U>, TaskRunnable
- Direct Known Subclasses:
- JavaWorkspaceBuilderTF
public abstract class AbstractGeneratorTaskFactory<T extends AbstractGeneratorTaskFactory<T,U>,U extends GeneratorTaskSpec<U>>
- extends AbstractTaskFactory<T,U>
- implements GeneratorTaskFactory<T,U>
This is a starting point for GeneratorTaskFactory
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 |
AbstractGeneratorTaskFactory
public AbstractGeneratorTaskFactory()
setTarget
public final T setTarget(Object o)
- Description copied from interface:
TargetConfigurable
- Set the target.
- Specified by:
setTarget
in interface TargetConfigurable<T extends AbstractGeneratorTaskFactory<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 AbstractGeneratorTaskFactory<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 AbstractGeneratorTaskFactory<T,U>>
- Parameters:
strat
- The overwrite strategy.
- Returns:
this