|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.databene.benerator.consumer.ConsumerChain
public class ConsumerChain
Combines several Processors under one Processor interface.
Each call to the Processor is forwarded to all sub Processors.
Created: 26.08.2007 14:50:29
Constructor Summary | |
---|---|
ConsumerChain(Consumer... components)
|
Method Summary | |
---|---|
void |
addComponent(Consumer component)
|
void |
close()
When called, the implementor has to close and free all resources. |
int |
componentCount()
|
void |
finishConsuming(ProductWrapper<?> wrapper)
Starts consumption of an object. |
void |
flush()
Is called by Benerator for advising the Consumer to finish processing of the objects consumed so far. |
Consumer |
getComponent(int index)
|
java.util.List<Consumer> |
getComponents()
|
void |
setComponents(Consumer... components)
|
void |
startConsuming(ProductWrapper<?> wrapper)
Starts consumption of an object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConsumerChain(Consumer... components)
Method Detail |
---|
public void setComponents(Consumer... components)
public void addComponent(Consumer component)
public Consumer getComponent(int index)
public int componentCount()
public void startConsuming(ProductWrapper<?> wrapper)
Consumer
startConsuming
in interface Consumer
public void finishConsuming(ProductWrapper<?> wrapper)
Consumer
finishConsuming
in interface Consumer
public void flush()
Consumer
pageSize
attribute.
flush
in interface java.io.Flushable
flush
in interface Consumer
public void close()
Consumer
close
in interface java.io.Closeable
close
in interface Consumer
public java.util.List<Consumer> getComponents()
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 |