Coverage Report - org.mule.module.jbpm.MuleMessageService
 
Classes in this File Line Coverage Branch Coverage Complexity
MuleMessageService
0%
0/4
N/A
1
 
 1  
 /*
 2  
  * $Id: MuleMessageService.java 19710 2010-09-23 16:29:07Z tcarlson $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.module.jbpm;
 12  
 
 13  
 import org.mule.MessageExchangePattern;
 14  
 import org.mule.api.MuleMessage;
 15  
 import org.mule.module.bpm.MessageService;
 16  
 import org.mule.transport.bpm.ProcessConnector;
 17  
 
 18  
 import java.util.Map;
 19  
 
 20  
 /**
 21  
  * Proxy for the message-generation service provided by Mule.  The real service gets injected here by the {@link ProcessConnector}.
 22  
  */
 23  0
 public class MuleMessageService implements MessageService
 24  
 {
 25  
     private MessageService messageService;
 26  
 
 27  
     public void setMessageService(MessageService messageService)
 28  
     {
 29  0
         this.messageService = messageService;
 30  0
     }
 31  
 
 32  
     public MuleMessage generateMessage(String endpoint,
 33  
                                        Object payloadObject,
 34  
                                        Map messageProperties,
 35  
                                        MessageExchangePattern mep) throws Exception
 36  
     {
 37  0
         return messageService.generateMessage(endpoint, payloadObject, messageProperties, mep);
 38  
     }
 39  
 }