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;
}
Aggregations