[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-8198) Support @Exact annotation
Viacheslav Kabanovich (JIRA)
jira-events at lists.jboss.org
Fri Apr 8 20:16:33 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-8198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Viacheslav Kabanovich resolved JBIDE-8198.
------------------------------------------
Fix Version/s: 3.3.0.M1
(was: 3.3.x)
Resolution: Done
> 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