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 */ 10 @Retention(RetentionPolicy.RUNTIME) 11 public @interface Alias { 12 String value(); 13 }