[cdi-dev] inject into bean produced by portable extension
JJ Snyder
j.j.snyder at oracle.com
Wed Aug 15 10:23:16 EDT 2012
Ok...issue entered: https://issues.jboss.org/browse/WELD-1182
On 08/15/2012 02:49 AM, Jozef Hartinger wrote:
> Yes, this should work as long as the classes can see each other. Can
> you file a Weld issue at https://issues.jboss.org/browse/WELD ?
>
> On 08/14/2012 09:00 PM, JJ Snyder wrote:
>> Is it possible for a bean produced by a portable extension to have
>> injection? For example, I have
>>
>> public class BeanA() {
>> @Inject
>> private BeanB beanB
>> ...
>> }
>>
>> public class BeanB() {}
>>
>> Both beans are created by the portable extension and added (via addBean)
>> in the afterBeanDiscovery method. When I deploy a war I get
>> "WELD-001408 Unsatisfied dependencies" for the private field beanB. The
>> portable extension is on the system classpath and not part of the war.
>>
>> I'm using Weld 1.1.8.Final
>>
>> thanks,
>> JJ
>> _______________________________________________
>> cdi-dev mailing list
>> cdi-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/cdi-dev
>
More information about the cdi-dev
mailing list