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 > [email protected] <mailto:[email protected]> > > > _______________________________________________ > weld-dev mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/weld-dev > _______________________________________________ weld-dev mailing list [email protected] https://lists.jboss.org/mailman/listinfo/weld-dev
