org.schmant.task.stub
Class AbstractGeneratorTaskFactory<T extends AbstractGeneratorTaskFactory<T,U>,U extends GeneratorTaskSpec<U>>

java.lang.Object
  extended by org.schmant.task.stub.AbstractTaskFactory<T,U>
      extended by 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

Field Summary
 
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable
DEFAULT_OVERWRITE_STRATEGY
 
Constructor Summary
AbstractGeneratorTaskFactory()
           
 
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.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
 

Constructor Detail

AbstractGeneratorTaskFactory

public AbstractGeneratorTaskFactory()
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 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