[weld-dev] fire process injection target event for non-cdi Interceptors
Jozef Hartinger
jharting at redhat.com
Mon Aug 10 11:20:16 EDT 2015
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
>
More information about the weld-dev
mailing list