1 25 26 package javax.annotation; 27 28 import static java.lang.annotation.ElementType.FIELD ; 29 import static java.lang.annotation.ElementType.METHOD ; 30 import static java.lang.annotation.ElementType.TYPE ; 31 import static java.lang.annotation.RetentionPolicy.RUNTIME ; 32 33 import java.lang.annotation.Retention ; 34 import java.lang.annotation.Target ; 35 36 42 @Target ({TYPE, METHOD, FIELD}) 44 @Retention (RUNTIME) 45 public @interface Resource { 46 49 public enum AuthenticationType { 50 53 CONTAINER, 54 55 58 APPLICATION 59 } 60 61 64 String name() default ""; 65 66 69 Class type() default Object .class; 70 71 74 AuthenticationType authenticationType() default AuthenticationType.CONTAINER; 75 76 79 boolean shareable() default true; 80 81 84 String mappedName() default ""; 85 86 89 String description() default ""; 90 } 91 92 | Popular Tags |