View Javadoc

1   /*
2    * $Id: SampleClassWithAnnotations.java 19191 2010-08-25 21:05:23Z tcarlson $
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  
11  package org.mule.util.scan.annotations;
12  
13  @Marker("ClassLevel")
14  public class SampleClassWithAnnotations
15  {
16      @Marker("FieldLevel")
17      private String myField;
18  
19      private int anotherNonAnnotatedField;
20  
21      @Marker("MethodLevel / Main")
22      public static void main(@Marker("ParamLevel")
23                              @MultiMarker(value = "ParamLevel", param1 = "12", param2 = "abc")
24                              String[] args) throws Exception
25      {
26          // no-op
27      }
28  
29      @Override
30      @Marker("MethodLevel / toString")
31      public String toString()
32      {
33          return super.toString();
34      }
35  
36      public void nonAnnotatedMethod()
37      {
38          // no-op
39      }
40  }