Search in sources :

Example 1 with MessageEnricher

use of org.mule.runtime.core.internal.enricher.MessageEnricher in project mule by mulesoft.

the class MessageEnricherObjectFactory method doGetObject.

@Override
public MessageEnricher doGetObject() {
    MessageEnricher messageEnricher = new MessageEnricher();
    if (target != null || source != null) {
        messageEnricher.addEnrichExpressionPair(new MessageEnricher.EnrichExpressionPair(source, target));
    }
    for (MessageEnricher.EnrichExpressionPair enrichExpressionPair : enrichExpressionPairs) {
        messageEnricher.addEnrichExpressionPair(enrichExpressionPair);
    }
    messageEnricher.setMuleContext(muleContext);
    messageEnricher.setMessageProcessor(messageProcessor);
    return messageEnricher;
}
Also used : MessageEnricher(org.mule.runtime.core.internal.enricher.MessageEnricher)

Aggregations

MessageEnricher (org.mule.runtime.core.internal.enricher.MessageEnricher)1