[webbeans-dev] Generic classes as bean types allowed?

Dan Allen dan.j.allen at gmail.com
Mon Aug 3 18:06:27 EDT 2009


Yes, except it is currently broken according to this issue report:
https://jira.jboss.org/jira/browse/WBRI-311

If you want to see examples, check out the test cases in the TCK.

And, as a parting point, this post should likely have been here:
http://seamframework.org/Community/WebBeansUsersForum

-Dan

On Mon, Aug 3, 2009 at 3:31 PM, Mark Struberg <struberg at yahoo.de> wrote:

>
> Hi!
>
> I have the following situation:
>
> public class MyClass<T> {
> ...
> }
>
> and like to inject a specialised instance of this class:
>
> public class MyOtherBean {
>  private MyClass<Integer> myIntCls;
> }
>
> >From reading the spec (2.2.1), I was not sure if this is allowed. It would
> make sense, since we can nail down the exact implementation at the injection
> point. Otoh the classpath scanning part will get trickier.
>
> LieGrue,
> strub
>
>
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>



-- 
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://in.relation.to/Bloggers/Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20090803/0df7df11/attachment.html 


More information about the weld-dev mailing list