[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-8197) Support @Requires annotation

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Fri Apr 1 19:44:37 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-8197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Viacheslav Kabanovich resolved JBIDE-8197.
------------------------------------------

    Fix Version/s: 3.3.0.M1
                       (was: 3.3.x)
       Resolution: Done


> Support @Requires annotation
> ----------------------------
>
>                 Key: JBIDE-8197
>                 URL: https://issues.jboss.org/browse/JBIDE-8197
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: cdi (jsr-299)
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>              Labels: new_and_noteworthy
>             Fix For: 3.3.0.M1
>
>
> 2.1.2. @Requires
> Annotating a class @Requires will cause the type to be ignored if the class dependencies can be satisfied. Any definitions on the type will not be processed:
> • the managed bean, decorator, interceptor or session bean defined by the type
> • any producer methods or producer fields defined on the type
> • any observer methods defined on the type
> For example:
> @Requires(EntityManager.class)
> class EntityManagerProducer {
>    @Produces EntityManager getEntityManager() {
>     ...
>    }
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jbosstools-issues mailing list