home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / javax / annotation / Resource.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  866 b   |  23 lines

  1. package javax.annotation;
  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. @Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
  9. @Retention(RetentionPolicy.RUNTIME)
  10. public @interface Resource {
  11.    String name() default "";
  12.  
  13.    Class type() default Object.class;
  14.  
  15.    AuthenticationType authenticationType() default javax.annotation.Resource.AuthenticationType.CONTAINER;
  16.  
  17.    boolean shareable() default true;
  18.  
  19.    String mappedName() default "";
  20.  
  21.    String description() default "";
  22. }
  23.