View Javadoc
1   package ejava.examples.javase5;
2   
3   import java.lang.annotation.Retention;
4   import java.lang.annotation.RetentionPolicy;
5   
6   /**
7    * This is an example annotation for giving something an alternate name.
8    * 
9    * @author jcstaff
10   * $Id:$
11   */
12  @Retention(RetentionPolicy.RUNTIME)
13  public @interface Alias {
14      String value();
15  }