View Javadoc
1   package ejava.examples.javase5;
2   
3   import org.apache.commons.logging.Log;
4   import org.apache.commons.logging.LogFactory;
5   
6   @Alias("demo class")
7   public class MyAnnotatedClass {
8       private static final Log log = LogFactory.getLog(MyAnnotatedClass.class);
9       
10      @CallMe(order=3, alias="last")
11      public void one() { log.info("one called"); }
12      
13      public void two() { log.info("two called"); }
14      
15      @CallMe(order=0) 
16      @Alias("first")
17      public void three() { log.info("three called"); }
18      
19      @CallMe(order=1, alias="middle")
20      public void four() { log.info("four called"); }
21  }