[weld-dev] fire process injection target event for non-cdi Interceptors

Emily Jiang emijiang6 at googlemail.com
Mon Aug 10 12:36:35 EDT 2015


Thank you Jozef! ah. I failed to spot this particular method.
Emily

On Mon, Aug 10, 2015 at 4:20 PM, Jozef Hartinger <jharting at redhat.com>
wrote:

> Hi Emily,
>
> there is an overloaded fireProcessInjectionTarget method here:
> http://docs.jboss.org/weld/javadoc/2.2/weld-spi/org/jboss/weld/manager/api/WeldManager.html#fireProcessInjectionTarget-javax.enterprise.inject.spi.AnnotatedType-javax.enterprise.inject.spi.InjectionTarget-
> that allows you to pass in any InjectionTarget instance. You can therefore
> build any InjectionTarget using WeldInjectionTargetFactory or
> WeldInjectionTargetBuilder and then fire the event using the aforementioned
> method.
>
> HTH,
>
> Jozef
>
> On 6.8.2015 12:16, Emily Jiang wrote:
>
>> According to the CDI 1.2 spec, the container must fire Processing
>> Injection Target event for all Java EE component classes. The Java EE
>> component classes are listed in the table EE-5.1, shown below.
>>
>> Inline image 1
>>
>> Weld provides an api WeldManager.fireProcessInjectionTarget, which can
>> be used to fire events for all other JavaEE component classes except the
>> interceptors . For EJB style interceptors, we have to use
>> WeldInjectionTargetFactory.createInterceptorInjectionTarget() (creating
>> a non-proxy instance) but it does not fire events. Are there any other
>> API to fire processing injection targets for EJB-style interceptors? Am
>> I missing something?
>> --
>> Thanks
>> Emily
>> =================
>> Emily Jiang
>> ejiang at apache.org <mailto:ejiang at apache.org>
>>
>>
>> _______________________________________________
>> weld-dev mailing list
>> weld-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/weld-dev
>>
>>


-- 
Thanks
Emily
=================
Emily Jiang
ejiang at apache.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20150810/1b9f2e9c/attachment.html 


More information about the weld-dev mailing list