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

Mark Struberg struberg at yahoo.de
Mon Aug 3 15:31:43 EDT 2009


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


      



More information about the weld-dev mailing list