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