View Javadoc

1   /*
2    * $Id: AnnotatedComponent1.java 18402 2010-07-20 20:20:39Z rossmason $
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  package org.mule.api.annotations;
11  
12  import org.mule.api.annotations.expressions.Function;
13  import org.mule.api.annotations.param.InboundHeaders;
14  import org.mule.api.annotations.param.Payload;
15  import org.mule.tck.testmodels.fruit.FruitBowl;
16  
17  
18  public class AnnotatedComponent1
19  {
20      public Object doSomething(
21              @Function("payloadClass") String className,
22              @Payload FruitBowl fruitBowl,
23              @InboundHeaders("foo") String foo)
24      {
25          return className + ":" + foo + ":" + fruitBowl.getClass();
26      }
27  }