[webbeans-dev] event type with type variable

Pete Muir pmuir at redhat.com
Thu Aug 6 07:53:19 EDT 2009


On 5 Aug 2009, at 22:46, Gavin King wrote:

> On Fri, Jul 24, 2009 at 12:46 PM, Pete Muir<pmuir at redhat.com> wrote:
>
>> This isn't legal
>>
>> public class Foo{
>>
>> @Produces <T> Bar make(@Any Event<T> event) {
>> ...
>>
>> }
>
>
> Actually that *is* legal. Except for the @Produces annotation (not
> sure what that's doing there).

I'm injecting an Event object into a Producer method. That seems  
totally valid to me?



More information about the weld-dev mailing list