<br><font size=1 face="sans-serif">Hi Stanley</font>
<br>
<br><font size=1 face="sans-serif">&quot;Stanley M. Ho&quot; &lt;Stanley.Ho@SUN.COM&gt;</font><tt><font size=2>
wrote on 25/06/2007 10:04:08 PM:<br>
<br>
&gt; Hi Glyn,<br>
&gt; <br>
&gt; Glyn Normington wrote:<br>
&gt; &gt;<br>
&gt; &gt; Yes, but my point was that separating lifecycle out in that way
would<br>
&gt; &gt; make it harder to enforce constraints like &quot;if a module's
state is<br>
&gt; &gt; initialised, the module's activator completed successfully&quot;.<br>
&gt; <br>
&gt; The mechanism I suggested is simply for informing the application
that<br>
&gt; something has happened. This is a notification only and does not change<br>
&gt; the state of the module system in any way.</font></tt>
<br>
<br><tt><font size=2>That's what I expected.</font></tt>
<br><tt><font size=2><br>
&gt; <br>
&gt; If we want to enforce constraints like you mentioned, one approach
is to<br>
&gt; execute the activator code in the custom import policy. If this is
not<br>
&gt; sufficient, then we'll probably need a different mechanism to handle<br>
&gt; this use case.</font></tt>
<br>
<br><tt><font size=2>I don't think calling the activator from the custom
import policy would work.</font></tt>
<br>
<br><tt><font size=2>The main problem is that it would require any module
needing an activator to supply a custom import policy, which we want to
avoid in most cases.</font></tt>
<br>
<br><tt><font size=2>Also, the custom import policy runs in a peculiar
'half-resolved' state (the module is unresolved at the start and hopefully
fully resolved at the end, so on average, it's half-resolved ;-) ) and
we wouldn't want application code proper, such as an activator, to have
to support this state.</font></tt>
<br><tt><font size=2><br>
&gt; <br>
&gt; - Stanley</font></tt>
<br>
<br><tt><font size=2>Glyn<br>
</font></tt><font size=3 face="sans-serif"><br>
</font>
<br><font size=3 face="sans-serif"><br>
</font>
<hr><font size=2 face="sans-serif"><br>
<i><br>
</i></font>
<p><font size=2 face="sans-serif"><i>Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU</i></font>
<p><font size=2 face="sans-serif"><br>
</font><font size=3 face="sans-serif"><br>
</font>
<br>
<br><font size=3 face="sans-serif"><br>
</font>