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.util.scan.annotations;
8   
9   @Marker("ClassLevel")
10  public class SampleClassWithAnnotations
11  {
12      @Marker("FieldLevel")
13      private String myField;
14  
15      private int anotherNonAnnotatedField;
16  
17      @Marker("MethodLevel / Main")
18      public static void main(@Marker("ParamLevel")
19                              @MultiMarker(value = "ParamLevel", param1 = "12", param2 = "abc")
20                              String[] args) throws Exception
21      {
22          // no-op
23      }
24  
25      @Override
26      @Marker("MethodLevel / toString")
27      public String toString()
28      {
29          return super.toString();
30      }
31  
32      public void nonAnnotatedMethod()
33      {
34          // no-op
35      }
36  }