org.crsh.io
Interface Producer<P>

All Superinterfaces:
Closeable
All Known Subinterfaces:
CommandInvoker<C,P>, Filter<C,P>
All Known Implementing Classes:
GroovyScriptCommand, InvokerPipeFilter, PipeCommandProxy, PipeLine, SinkPipeFilter, ToChunkPipeFilter

public interface Producer<P>
extends Closeable


Method Summary
 void close()
          Close the producer.
 Class<P> getProducedType()
          Returns the class of the produced type.
 void open(ProducerContext<P> context)
          Open the producer with the specified context.
 void setPiped(boolean piped)
          Set the pipe status.
 

Method Detail

getProducedType

Class<P> getProducedType()
Returns the class of the produced type.

Returns:
the produced type

setPiped

void setPiped(boolean piped)
Set the pipe status.

Parameters:
piped - the piped status

open

void open(ProducerContext<P> context)
Open the producer with the specified context.

Parameters:
context - the context

close

void close()
Close the producer.

Specified by:
close in interface Closeable


Copyright © 2012 eXo Platform SAS. All Rights Reserved.