<div dir="ltr">yes. This is another solution I have in mind, which is better to discover these components in CDI integration code. I had hoped there is a nice API in Weld allowing me to differentiate the JavaEE component classes.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 7:30 AM, Jozef Hartinger <span dir="ltr"><<a href="mailto:jharting@redhat.com" target="_blank">jharting@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
I suppose you already must have code capable of identifying those
components - i.e. the Servlet container must be able to discover
Servlets in a web application. Therefore, the best way probably is
to hook into these "Java EE component supporting" pieces of code
instead of discovering the EE components yourself in the CDI
integration code.<br>
<br>
We do exactly this in WildFly where we let the other subsystems
identify EE components and then override the factories for these
components to actually use InjectionTargets (and fire PIT, PIP in
the process).<br>
<br>
HTH,<br>
<br>
Jozef<div><div class="h5"><br>
<br>
<div>On 05/28/2015 11:42 AM, Emily Jiang
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">I need to fire events for each JavaEE component
class (e.g. process injectionTarget, injectionPoint etc) during
Weld bootstrap phase. At the moment, I am think to go through
all bdas per deployment and process all classes in the bda and
fire events for each JavaEE component classes as Weld leaves it
to be handled by the integrator. What is the best way to find
out which class is JavaEE component class? I don't like to idea
of building a long hardcoded list from the EE.5-1 table of the
JavaEE7 spec. <br clear="all">
<div><br>
-- <br>
<div>Thanks<br>
Emily<br>
=================<br>
Emily Jiang<br>
<a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a><br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
weld-dev mailing list
<a href="mailto:weld-dev@lists.jboss.org" target="_blank">weld-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a></pre>
</blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Thanks<br>Emily<br>=================<br>Emily Jiang<br><a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a><br></div>
</div>