← 输入框|github.com|刷新
Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

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

Open

Description

@glassfishrobot

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

  1. glassfishrobot commented on Jun 18, 2011

    @glassfishrobot
    Author

    Reported by abien

  2. glassfishrobot commented on Aug 30, 2012

    @glassfishrobot
    Author

    mvatkina said:
    This is being discussed in the Java EE platform EG: http://java.net/projects/javaee-spec/lists/jsr342-experts/archive/2012-08/message/20

  3. glassfishrobot commented on Oct 27, 2012

    @glassfishrobot
    Author

    mvatkina said:
    Reopening to move to java-ee project

  4. glassfishrobot commented on Jan 24, 2013

    @glassfishrobot
    Author

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

  5. glassfishrobot commented on Apr 25, 2017

    @glassfishrobot
    Author

    This issue was imported from java.net JIRA JAVAEE_SPEC-12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions