<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Actaully, how would y'all feel about a simple abstraction of our own;<BR>
 <BR>
Making an OpenSim.Framework IConfig interface of our own, that just exposes a few, simple config methods, like;<BR>
 <BR>
TValue IConfig.SetConfigValue<TValue>(string key, TValue value);<BR>
TValue IConfig.GetConfigValue<TValue>(string key, TValue default);<BR>
 <BR>
Then for each module instantiation the core would just create a 'facade' to the right config source/section (nini or not) - that would be responsible for negotiating config sections and config source (file)name resolution.<BR><BR>
A simple and elegant solution to getting the nini ref out of the region modules.<BR>
 <BR>
While we're at it, why don't we introduce a sibling IConfigBridge that the MODULE is optionally supposed to implement, that could provide simple config negotiation info like;<BR>
 <BR>
string IConfigBridge.GetConfigSectionName();<BR>
string IConfigBridge.GetConfigSourceName();<BR><BR>Best regards,<BR>Stefan Andersson<BR>Tribal Media AB<BR><BR><BR><BR> <BR>> From: adam@deepthink.com.au<BR>> To: homer.horwitz@gmail.com; opensim-dev@lists.berlios.de<BR>> Date: Sun, 25 Jan 2009 02:37:01 -0500<BR>> Subject: Re: [Opensim-dev] Proposal for a cleanup/correction of the region-module system<BR>> <BR>> One other suggested change.<BR>> <BR>> Let's remove IConfigSource from the RegionModule Initialise method - and instead make some kind of globally accessible (via Scene?) .Config. The reason for this is twofold:<BR>> <BR>> 1. We pass config in multiple times, one per scene.<BR>> 2. It introduces a dependency on Nini that every region module must fill - this is annoying when a module isn't configurable.<BR>> <BR>> Regards,<BR>> <BR>> Adam<BR>> <BR>> > -----Original Message-----<BR>> > From: opensim-dev-bounces@lists.berlios.de [mailto:opensim-dev-<BR>> > bounces@lists.berlios.de] On Behalf Of Homer Horwitz<BR>> > Sent: Saturday, 24 January 2009 12:04 PM<BR>> > To: opensim-dev@lists.berlios.de<BR>> > Subject: [Opensim-dev] Proposal for a cleanup/correction of the region-<BR>> > module system<BR>> ><BR>> > Hi all,<BR>> ><BR>> > the current system for handling region-modules is slightly broken if<BR>> > you add/remove regions dynamically (or even for region-restarts). I've<BR>> > put up some thoughts at<BR>> > http://opensimulator.org/wiki/New_Region_Modules for discussion.<BR>> > Please answer on the associated 'discussion' page or here on the list.<BR>> ><BR>> > Cheers,<BR>> > Homer<BR>> > _______________________________________________<BR>> > Opensim-dev mailing list<BR>> > Opensim-dev@lists.berlios.de<BR>> > https://lists.berlios.de/mailman/listinfo/opensim-dev<BR>> _______________________________________________<BR>> Opensim-dev mailing list<BR>> Opensim-dev@lists.berlios.de<BR>> https://lists.berlios.de/mailman/listinfo/opensim-dev<BR></body>
</html>