Class CurrentProductGeneration
- java.lang.Object
-
- com.rapiddweller.benerator.engine.CurrentProductGeneration
-
- All Implemented Interfaces:
LifeCycleHolder
,Statement
,com.rapiddweller.common.Resettable
,java.io.Closeable
,java.lang.AutoCloseable
public class CurrentProductGeneration extends java.lang.Object implements Statement, LifeCycleHolder
- Since:
- 0.7.0
- Author:
- Volker Bergmann
-
-
Constructor Summary
Constructors Constructor Description CurrentProductGeneration(java.lang.String instanceName, Generator<?> source)
Instantiates a new Current product generation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
execute(BeneratorContext context)
Execute boolean.void
init(BeneratorContext context)
Init.void
reset()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CurrentProductGeneration
public CurrentProductGeneration(java.lang.String instanceName, Generator<?> source)
Instantiates a new Current product generation.- Parameters:
instanceName
- the instance namesource
- the source
-
-
Method Detail
-
init
public void init(BeneratorContext context)
Description copied from interface:LifeCycleHolder
Init.- Specified by:
init
in interfaceLifeCycleHolder
- Parameters:
context
- the context
-
execute
public boolean execute(BeneratorContext context)
Description copied from interface:Statement
Execute boolean.
-
reset
public void reset()
- Specified by:
reset
in interfacecom.rapiddweller.common.Resettable
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-