View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.example.loanbroker.issues;
8   
9   import org.mule.api.MuleEventContext;
10  import org.mule.api.lifecycle.Callable;
11  
12  import org.apache.commons.logging.Log;
13  import org.apache.commons.logging.LogFactory;
14  
15  public class SimpleEchoComponent implements Callable
16  {
17  
18      private Log logger = LogFactory.getLog(getClass());
19  
20      public Object onCall(MuleEventContext context) throws Exception
21      {
22          Object message = context.getMessage().getPayload();
23          logger.debug("received " + message);
24  
25          return message;
26      }
27  
28  }