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