|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.databene.benerator.engine.TaskBasedGenerator
public class TaskBasedGenerator
Wraps a GenerateAndConsumeTask
with a Generator
interface.
Created: 01.09.2011 15:33:34
Constructor Summary | |
---|---|
TaskBasedGenerator(GenerateAndConsumeTask task)
|
Method Summary | |
---|---|
void |
close()
Closes the generator. |
ProductWrapper<java.lang.Object> |
generate(ProductWrapper<java.lang.Object> wrapper)
Returns an instance of the generic type E, using the ProductWrapper
instance provided as argument. |
java.lang.Class<java.lang.Object> |
getGeneratedType()
Declares the type of the objects returned by the generate() method. |
void |
init(GeneratorContext context)
|
boolean |
isParallelizable()
|
boolean |
isThreadSafe()
|
void |
reset()
|
java.lang.String |
toString()
|
boolean |
wasInitialized()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TaskBasedGenerator(GenerateAndConsumeTask task)
Method Detail |
---|
public boolean isParallelizable()
isParallelizable
in interface org.databene.commons.ThreadAware
public boolean isThreadSafe()
isThreadSafe
in interface org.databene.commons.ThreadAware
public java.lang.Class<java.lang.Object> getGeneratedType()
Generator
getGeneratedType
in interface Generator<java.lang.Object>
public void init(GeneratorContext context)
init
in interface Generator<java.lang.Object>
public boolean wasInitialized()
wasInitialized
in interface Generator<java.lang.Object>
public ProductWrapper<java.lang.Object> generate(ProductWrapper<java.lang.Object> wrapper)
Generator
ProductWrapper
instance provided as argument.
The wrapper may wrap a null value as a regular generator product.
If the generator is not available (any more), it returns null instead of
the ProductWrapper instance.
generate
in interface Generator<java.lang.Object>
public void reset()
reset
in interface org.databene.commons.Resettable
public void close()
Generator
close
in interface java.io.Closeable
close
in interface Generator<java.lang.Object>
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |