org.mule.transformer.simple
Class CombineCollectionsTransformer
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CombineCollectionsTransformer
public CombineCollectionsTransformer()
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.