public class ClosureInvoker extends CommandInvoker<java.lang.Object,java.lang.Object>
| Constructor and Description |
|---|
ClosureInvoker(groovy.lang.Closure closure) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the producer.
|
void |
flush() |
java.lang.Class<java.lang.Object> |
getConsumedType()
Returns the class of the element generic type.
|
java.lang.Class<java.lang.Object> |
getProducedType()
Returns the class of the produced type.
|
void |
open(CommandContext<? super java.lang.Object> consumer)
Open the producer with the specified consumer.
|
void |
provide(java.lang.Object element)
Provide an element.
|
invokepublic java.lang.Class<java.lang.Object> getProducedType()
Producerpublic java.lang.Class<java.lang.Object> getConsumedType()
Consumerpublic void provide(java.lang.Object element)
throws java.io.IOException
Consumerelement - the provided elementjava.io.IOExceptionpublic void open(CommandContext<? super java.lang.Object> consumer)
Producerconsumer - the consumerpublic void flush()
throws java.io.IOException
java.io.IOExceptionpublic void close()
ProducerCopyright © 2014 eXo Platform SAS. All Rights Reserved.