[webbeans-dev] TypeVariabe Event Type
Pete Muir
pmuir at redhat.com
Wed Aug 26 15:21:54 EDT 2009
Yes, you can't fire an event of type Foo<T>. You must create a sub
class, this then allows Java to resolve the type variables. In the RI
we do
new ProcessAnnotatedTypeImpm<T>() {};
to achieve this.
On 26 Aug 2009, at 20:15, Gurkan Erdogdu wrote:
> Hi;
>
> In method, public void fireEvent(Object event, Annotation...
> qualifiers) in BeanManager; spec specifies that runtime event type
> can not be TypeVariable. But when I look at portable events, all of
> them contain type variable.
>
> For Example;
>
> ProcessAnnotatedType<X>
>
> When fires this event, event.getClass.getTypeVariables always
> contain TypeVariable.
>
> Is this true?
>
> Thanks;
>
> --Gurkan
>
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
More information about the weld-dev
mailing list