View Javadoc
1   package ejava.examples.javase5;
2   
3   import java.lang.annotation.ElementType;
4   import java.lang.annotation.Retention;
5   import java.lang.annotation.RetentionPolicy;
6   import java.lang.annotation.Target;
7   
8   
9   /**
10   * This is a test interface that will be used to designate which methods
11   * of a class should get called, and in what order, within a demo. An
12   * optional name is supplied with each method.
13   * 
14   */
15  @Retention(RetentionPolicy.RUNTIME)
16  @Target(ElementType.METHOD)
17  public @interface CallMe {        
18          int order();
19          String alias() default "";        
20  }