<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: listener disables other listener in different bundle in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/listener-disables-other-listener-in-different-bundle/m-p/322864#M9865</link>
    <description>&lt;P&gt;Hi Eric,&lt;/P&gt;
&lt;P&gt;In order to deploy your component after another one, you just need to add a &lt;CODE&gt;require&lt;/CODE&gt; xml element with the component name you want to deploy before. In your case the component holding the enabled listener.&lt;/P&gt;
&lt;P&gt;Let me know if you have trouble&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2017 18:00:16 GMT</pubDate>
    <dc:creator>Kevin_Leturc</dc:creator>
    <dc:date>2017-07-28T18:00:16Z</dc:date>
    <item>
      <title>listener disables other listener in different bundle</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/listener-disables-other-listener-in-different-bundle/m-p/322863#M9864</link>
      <description>&lt;P&gt;I have a contribution that declares a listener as disabled. This declartion wants to disable a listener with the same name in another bundle:&lt;/P&gt;
&lt;P&gt;in my bundle "A": &lt;CODE&gt;&amp;lt;listener name="..." class="..." enabled="false"/&amp;gt;&lt;/CODE&gt;
in other bundle "Z": &lt;CODE&gt;&amp;lt;listener name="..." class="..."/&amp;gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;The problem is that the bundle that contributes the listener that I'm trying to disable loads after my bundle. I've traced the framework code from &lt;CODE&gt;FrameworkBootstrap.initialize&lt;/CODE&gt; and &lt;CODE&gt;NuxeoStarter.contextInitialized&lt;/CODE&gt; all the way to &lt;CODE&gt;EventListenerList.mergeDescriptor&lt;/CODE&gt;. The bundles are sorted in alpha order and so bundle "A" can't contribute a listener that disables a listener contributed in bundle "Z" if "Z"'s listener is defined as active. Last one registered wins.&lt;/P&gt;
&lt;P&gt;Is there a way to register a callback after **all **the listeners are loaded and initialized to make any final adjustments such as what I'm trying to accomplish? Or what would be the recommended way to solve this? Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 17:03:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/listener-disables-other-listener-in-different-bundle/m-p/322863#M9864</guid>
      <dc:creator>Eric_Ace</dc:creator>
      <dc:date>2017-07-28T17:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: listener disables other listener in different bundle</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/listener-disables-other-listener-in-different-bundle/m-p/322864#M9865</link>
      <description>&lt;P&gt;Hi Eric,&lt;/P&gt;
&lt;P&gt;In order to deploy your component after another one, you just need to add a &lt;CODE&gt;require&lt;/CODE&gt; xml element with the component name you want to deploy before. In your case the component holding the enabled listener.&lt;/P&gt;
&lt;P&gt;Let me know if you have trouble&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 18:00:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/listener-disables-other-listener-in-different-bundle/m-p/322864#M9865</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2017-07-28T18:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: listener disables other listener in different bundle</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/listener-disables-other-listener-in-different-bundle/m-p/322865#M9866</link>
      <description>&lt;P&gt;Never mind - I had the &lt;CODE&gt;&amp;lt;require&amp;gt;&lt;/CODE&gt; tag in the wrong place and so the &lt;CODE&gt;RegistrationInfoImpl&lt;/CODE&gt; instance was not initialized with the dependency ... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 18:54:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/listener-disables-other-listener-in-different-bundle/m-p/322865#M9866</guid>
      <dc:creator>Eric_Ace</dc:creator>
      <dc:date>2017-07-28T18:54:48Z</dc:date>
    </item>
  </channel>
</rss>

