From: Gavin King <gavin@hibernate.org>
To: Gurkan Erdogdu <gurkanerdogdu@yahoo.com>
Cc: webbeans-dev@lists.jboss.org
Sent: Friday, March 13, 2009 12:56:55 AM
Subject: Re: [webbeans-dev] TCK- Event Tests
Use TypeLiteral.
On Thu, Mar 12, 2009 at 6:48 PM, Gurkan Erdogdu <
gurkanerdogdu@yahoo.com> wrote:
> Hi;
>
> When @Fires annotation exist in the field of the bean, there is an implicit
> bean and indeed this bean must be added to the Manager. But then
> how to differentiate beans with the same API type (Event class) and Binding
> Type?
>
> For example;
>
> Class A{
> @Fires Event<X> x;
> }
>
> Class B{
> @Fires Event<Y> y;
> }
>
> In the tests using the resolveByType(Event.class, new FiresBinding(){}).
>
> But in this case it throws the AmbigiousDependencyException. How could we
> resolve this? Or we understood wrongly;
>
> Thanks;
>
> Gurkan
>
>
>
>
_______________________________________________
> webbeans-dev mailing list
>
webbeans-dev@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/webbeans-dev>
>
--
Gavin King
gavin.king@gmail.comhttp://in.relation.to/Bloggers/Gavinhttp://hibernate.orghttp://seamframework.org