dev@glassfish.java.net

Re: javax.annotation.Resource has incorrect member

From: Qingqing Ouyang <Qingqing.Ouyang_at_Sun.COM>
Date: Tue, 17 Jan 2006 10:15:41 -0600

Hi, Wonseok:

Thanks for bringing this up to our attention. The JSR 250 source/binary
has been corrected according to the specification.

Thanks,
Q^2

Wonseok Kim wrote:

>Glassfish has incorrect @javax.annotation.Resource annotation class.
>
>Resource.authentication() member should be
>*Resource.authenticationType()* according to JSR-250 PFD spec.
>
>JSR250 PFD says:
>
>public @interface Resource {
>public enum AuthenticationType {
>CONTAINER,
>APPLICATION
>}
>String name() default ¡°¡°;
>Class type() default Object.class;
>AuthenticationType authenticationType() default
>AuthenticationType.CONTAINER;
>boolean shareable() default true;
>String description() default ¡°¡°;
>}
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>
>