submarine.connectors
Class ChainWriter

java.lang.Object
  |
  +--submarine.connectors.ListWriter
        |
        +--submarine.connectors.ChainWriter
All Implemented Interfaces:
SubmiterAware, WritingFunction, XMLConfigurable

public class ChainWriter
extends ListWriter

makes the result of the first writer the input of the second writer and continuing with the nexts. The last result is the result of the writer


Fields inherited from class submarine.connectors.ListWriter
controler, eai, list, xml
 
Constructor Summary
ChainWriter()
           
 
Method Summary
 boolean putDocument(Message.MsgContext context, java.lang.Object doc)
           
 java.lang.Object putSyncDocument(Message.MsgContext context, java.lang.Object doc)
           
 
Methods inherited from class submarine.connectors.ListWriter
init, setSubmiter
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ChainWriter

public ChainWriter()
Method Detail

putSyncDocument

public java.lang.Object putSyncDocument(Message.MsgContext context,
                                        java.lang.Object doc)
                                 throws java.lang.Exception
Overrides:
putSyncDocument in class ListWriter
Following copied from interface: submarine.core.WritingFunction
Parameters:
doc -  
context -  
Returns:
java.lang.Object
Throws:
java.lang.Exception -  

putDocument

public boolean putDocument(Message.MsgContext context,
                           java.lang.Object doc)
                    throws java.lang.Exception
Overrides:
putDocument in class ListWriter
Following copied from interface: submarine.core.WritingFunction
Parameters:
doc -  
context -  
Returns:
boolean
Throws:
java.lang.Exception -  

Submarine project. free distribution of this software must include the opensource licence.
Guénolé de Cadoudal.