as I see,<br>IApplicationPlugin is for extending the OpenSim.exe.<br> it is initialized after you execute the OpenSim.exe.<br>IRegionModule is for extending the RegionServer.<br>
it is initialized at the beginning of loading a region(sim).<br>
<br>>Can we replace IRegionModules with IRegionPlugins and have PluginLoader<br>
>load them all?<br>
<br>They are for different purposes, and loaded at different timing,<br>Functionally, they can not be<b> <span style="font-weight: normal;">converged</span>.</b><br>But they are written in similar code style, if you want to give them more meaningful<br>
names, and apply polymorphism to making the code easier to be understand,<br>it is a good idea.<br><div class="gmail_quote"><br>lulurun,<br>regards<br><br>2008/7/3 Ryan McDougall <<a href="mailto:sempuki1@gmail.com">sempuki1@gmail.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In my poking about the loading code to get an idea of the scale of the<br>
problem. I asked before about I*Plugin v. I(Region)Module, but I don't<br>
think there was much of a clear answer...<br>
<br>
The reason I am asking again is that I noticed:<br>
<br>
1. That a Scene takes a (Region)ModuleLoader as an argument to its<br>
constructor. It doesn't appear to use this reference at all.<br>
<br>
Is there a Scene that needs to load its own RegionModules? Or is this an<br>
example of bit-rotted code or inappropriate abstraction/coupling?<br>
<br>
2. That LoadRegionsPlugin (an IApplicationPlugin) uses its reference to<br>
(Region)ModuleLoader (through OpenSimBase) to load RegionModules.<br>
<br>
Without knowing the semantic difference between a Plugin and Module, the<br>
LoadRegionsPlugin looks a bit awkward. It appears as if its only purpose<br>
is to choose between RegionLoaderFileSystem and RegionLoaderWebServer,<br>
then load them within a plugin...<br>
<br>
Perhaps it might be more appropriate to make that selection in<br>
OpenSimBase in order to keep all loading in one place?<br>
<br>
There are many ways I could do that, but it would take understanding the<br>
purpose of the current and future design in order to make my plugin<br>
loader a true solution that accommodates all use-cases.<br>
<br>
Can we replace IRegionModules with IRegionPlugins and have PluginLoader<br>
load them all?<br>
<br>
Cheers,<br>
<br>
_______________________________________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/mailman/listinfo/opensim-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Lulurun