org.mule.transformer.simple
Class CombineCollectionsTransformer

java.lang.Object
  extended by org.mule.transformer.simple.CombineCollectionsTransformer
All Implemented Interfaces:
MessageProcessor

public class CombineCollectionsTransformer
extends Object
implements MessageProcessor

Takes a payload which is a Collection of Collections and turns into a single List. For example, if the payload is a Collection which contains a Collection with elements A and B and another Collection with elements C and D, this will turn them into a single Collection with elements A, B, C and D. This transformer will also work on MuleMessageCollections. In this case, it will take the individual Collection payloads of each MuleMessage and merge them into a single Collection on a new MuleMessage.


Constructor Summary
CombineCollectionsTransformer()
           
 
Method Summary
 MuleEvent process(MuleEvent event)
          Invokes the MessageProcessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombineCollectionsTransformer

public CombineCollectionsTransformer()
Method Detail

process

public MuleEvent process(MuleEvent event)
                  throws MuleException
Description copied from interface: MessageProcessor
Invokes the MessageProcessor.

Specified by:
process in interface MessageProcessor
Parameters:
event - MuleEvent to be processed
Returns:
optional response MuleEvent
Throws:
MuleException


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.