<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:8pt">look at CDI-129. Imo this is really tied to our modularisation and visibility. Think about EAR deployments. <br><br>Imo each ClassLoader 'module' should have an own BeanManager forming a hierarchy 1:1 wich the ClassLoaders. And each BeanManager has it's own set of Extension instances.<br><div><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>LieGrue,</span></div><div style="color: rgb(0, 0, 0); font-size: 10.6667px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span>strub<br></span></div><div style="display: block;" class="yahoo_quoted">
 <br> <br> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 8pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> On Tuesday, 11 March 2014, 19:29, Pete Muir &lt;pmuir@redhat.com&gt; wrote:<br> </font> </div> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div class="y_msg_container">Well, its not clear what the current behaviour should be, and it’s not clear what we want the behaviour to be in the future!<br clear="none"><div class="yqt9410706473" id="yqtfd70635"><br clear="none">On 10 Mar 2014, at 14:17, John D. Ament &lt;<a shape="rect" ymailto="mailto:john.d.ament@gmail.com" href="mailto:john.d.ament@gmail.com">john.d.ament@gmail.com</a>&gt; wrote:<br clear="none"><br clear="none">&gt; So, if I'm
 getting you guys right.<br clear="none">&gt; <br clear="none">&gt; - An extension applies to the entire application.<br clear="none">&gt; - An extension should apply to the entire application even if it has<br clear="none">&gt; been defined within a bean archive that is within the application<br clear="none">&gt; (e.g. a JAR inside a WAR).<br clear="none">&gt; <br clear="none">&gt; I'm happy to create an issue (if none exists) and reword the spec to<br clear="none">&gt; clarify this in 11.5, if it makes sense.<br clear="none">&gt; <br clear="none">&gt; - John<br clear="none">&gt; <br clear="none">&gt; On Mon, Mar 10, 2014 at 7:25 AM, Pete Muir &lt;<a shape="rect" ymailto="mailto:pmuir@redhat.com" href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt; wrote:<br clear="none">&gt;&gt; The only real reference is 11.5<br clear="none">&gt;&gt; <br clear="none">&gt;&gt; "The container instantiates a single instance of each extension at the beginning of the
 application initialization process and maintains a reference to it until the application shuts down. The container delivers event notifications to this instance by calling its observer methods.<br clear="none">&gt;&gt; <br clear="none">&gt;&gt; For each service provider, the container must provide a bean of scope @ApplicationScoped and <a shape="rect" ymailto="mailto:qualifier@Default" href="mailto:qualifier@Default">qualifier@Default</a>, supporting injection of a reference to the service provider instance. The bean types of this bean include the class of the service provider and all superclasses and interfaces."<br clear="none">&gt;&gt; <br clear="none">&gt;&gt; This is a known place in the spec where more detail should be provided and there should be a (number of) open CDI issue(s).<br clear="none">&gt;&gt; <br clear="none">&gt;&gt; On 24 Feb 2014, at 10:09, Antoine Sabot-Durand &lt;<a shape="rect" ymailto="mailto:antoine@sabot-durand.net"
 href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>&gt; wrote:<br clear="none">&gt;&gt; <br clear="none">&gt;&gt;&gt; Hi John,<br clear="none">&gt;&gt;&gt; <br clear="none">&gt;&gt;&gt; Yes it doesn't seem to be explicitly written (I'm still looking) but reading at the beginning of chapter 12, it's implicit that there's one container that do one bean discovery and fire on set of events for type discovered. So IMO, it's implicit that extensions are not limited to their current archive and have the same &lt;&lt; visibility &gt;&gt; level than the CDI container : i.e. the current application.<br clear="none">&gt;&gt;&gt; This said, it couldn't hurt to write it explicitly.<br clear="none">&gt;&gt;&gt; <br clear="none">&gt;&gt;&gt; Antoine<br clear="none">&gt;&gt;&gt; <br clear="none">&gt;&gt;&gt; Le 22 févr. 2014 à 21:51, John D. Ament &lt;<a shape="rect" ymailto="mailto:john.d.ament@gmail.com"
 href="mailto:john.d.ament@gmail.com">john.d.ament@gmail.com</a>&gt; a écrit :<br clear="none">&gt;&gt;&gt; <br clear="none">&gt;&gt;&gt;&gt; Hi all,<br clear="none">&gt;&gt;&gt;&gt; <br clear="none">&gt;&gt;&gt;&gt; Quick question.&nbsp; This is mostly from playing around with Weld SE<br clear="none">&gt;&gt;&gt;&gt; 2.1.2, so I'm not sure if my question is going to be Weld SE specific<br clear="none">&gt;&gt;&gt;&gt; or be generally applied.<br clear="none">&gt;&gt;&gt;&gt; <br clear="none">&gt;&gt;&gt;&gt; Looking through the spec, I did not see any obvious indications of<br clear="none">&gt;&gt;&gt;&gt; this.&nbsp; What is the scope of the application of an Extension class?<br clear="none">&gt;&gt;&gt;&gt; Suppose I had a JAR file that had<br clear="none">&gt;&gt;&gt;&gt; META-INF/services/javax.enterprise.inject.spi.Extension with the<br clear="none">&gt;&gt;&gt;&gt; contents of some extension class.&nbsp; Should the application of that<br
 clear="none">&gt;&gt;&gt;&gt; extension class apply to all JARs within the same classpath?&nbsp; If that<br clear="none">&gt;&gt;&gt;&gt; extension were listed in a WAR file, would it apply to the WAR and all<br clear="none">&gt;&gt;&gt;&gt; JAR modules?<br clear="none">&gt;&gt;&gt;&gt; <br clear="none">&gt;&gt;&gt;&gt; John<br clear="none">&gt;&gt;&gt;&gt; _______________________________________________<br clear="none">&gt;&gt;&gt;&gt; cdi-dev mailing list<br clear="none">&gt;&gt;&gt;&gt; <a shape="rect" ymailto="mailto:cdi-dev@lists.jboss.org" href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br clear="none">&gt;&gt;&gt;&gt; <a shape="rect" href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br clear="none">&gt;&gt;&gt; <br clear="none">&gt;&gt;&gt; <br clear="none">&gt;&gt;&gt; _______________________________________________<br clear="none">&gt;&gt;&gt; cdi-dev
 mailing list<br clear="none">&gt;&gt;&gt; <a shape="rect" ymailto="mailto:cdi-dev@lists.jboss.org" href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br clear="none">&gt;&gt;&gt; <a shape="rect" href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br clear="none">&gt;&gt; <br clear="none"><br clear="none"><br clear="none">_______________________________________________<br clear="none">cdi-dev mailing list<br clear="none"><a shape="rect" ymailto="mailto:cdi-dev@lists.jboss.org" href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br clear="none"><a shape="rect" href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a></div><br><br></div> </blockquote>  </div> </div>   </div> </div></body></html>