<br><font size=1 face="sans-serif">Hi Stanley</font>
<br>
<br><font size=1 face="sans-serif">"Stanley M. Ho" <Stanley.Ho@SUN.COM></font><tt><font size=2>
wrote on 25/06/2007 10:04:08 PM:<br>
<br>
> Hi Glyn,<br>
> <br>
> Glyn Normington wrote:<br>
> ><br>
> > Yes, but my point was that separating lifecycle out in that way
would<br>
> > make it harder to enforce constraints like "if a module's
state is<br>
> > initialised, the module's activator completed successfully".<br>
> <br>
> The mechanism I suggested is simply for informing the application
that<br>
> something has happened. This is a notification only and does not change<br>
> 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>
> <br>
> If we want to enforce constraints like you mentioned, one approach
is to<br>
> execute the activator code in the custom import policy. If this is
not<br>
> sufficient, then we'll probably need a different mechanism to handle<br>
> 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>
> <br>
> - 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>