javaee-spec
  1. javaee-spec
  2. JAVAEE_SPEC-12

Enhancing @Stateless, @Stateful and @Singleton annotations with ElementType.ANNOTATION_TYPE

    Details

    • Type: New Feature New Feature
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None

      Description

      currently the @Stateless, @Stateful annotations look like:

      @Target(value =

      {ElementType.TYPE}

      )
      @Retention(value = RetentionPolicy.RUNTIME)
      public @interface Stateless {}

      I would like to extend the @Target of all @Stateless, @Stateful, @Singleton beans to:

      @Target(value =

      {ElementType.TYPE,*ElementType.ANNOTATION_TYPE*}

      )

      (add ElementType.ANNOTATION_TYPE)

      This would allow to use EJB meta-annotations in CDI @Stereotype definition

        Activity

        Hide
        marina vatkina added a comment -
        Show
        marina vatkina added a comment - This is being discussed in the Java EE platform EG: http://java.net/projects/javaee-spec/lists/jsr342-experts/archive/2012-08/message/20
        Hide
        marina vatkina added a comment -

        Reopening to move to java-ee project

        Show
        marina vatkina added a comment - Reopening to move to java-ee project
        Hide
        ldemichiel added a comment -

        As discussed in the expert group, we would like to address the topic of expanded "stereotype"/"metatype" support in Java EE 8.

        Show
        ldemichiel added a comment - As discussed in the expert group, we would like to address the topic of expanded "stereotype"/"metatype" support in Java EE 8.

          People

          • Assignee:
            ldemichiel
            Reporter:
            abien
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: