[jbosstools-issues] [JBoss JIRA] Closed: (JBIDE-8198) Support @Exact annotation

Lukas Jungmann (JIRA) jira-events at lists.jboss.org
Fri Jun 24 10:03:23 EDT 2011


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

Lukas Jungmann closed JBIDE-8198.
---------------------------------



v. M2

> Support @Exact annotation
> -------------------------
>
>                 Key: JBIDE-8198
>                 URL: https://issues.jboss.org/browse/JBIDE-8198
>             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.2. @Exact
> Annotating an injection point with @Exact allows you to select an exact implementation of the injection point type to inject. For example:
> interface PaymentService {
> ...
> }
> class ChequePaymentService implements PaymentService {
> ...
> }
> class CardPaymentService implements PaymentService {
> ...
> }
> class PaymentProcessor {
>    @Inject @Exact(CardPaymentService.class)
>    PaymentService paymentService;
>    ...
> }

--
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