View Javadoc

1   /*
2    * $Id: AnnotatedComponent2.java 20321 2010-11-24 15:21:24Z dfeist $
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.param.InboundHeaders;
13  import org.mule.api.annotations.param.Payload;
14  
15  import java.util.Map;
16  
17  public class AnnotatedComponent2 extends AnnotatedComponent1
18  {
19      public Object doStuff(@Payload String bar, @InboundHeaders("*") Map headers)
20      {
21          return bar + ":" + headers.toString();
22      }
23  
24      public String getSomething()
25      {
26          return "something";
27      }
28  
29      public String doSomethingElse(Object something)
30      {
31          return "somethingElse";
32      }
33  
34      //@Dummy is not a MUle annotation, this method should be ignored
35      public Map nonExpressionAnnotation(@Dummy Map map)
36      {
37          return map;
38      }
39  }