mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Committing the interface change and the addition to the modules to get
the ball rolling on replacable modules. No user functionality yet
This commit is contained in:
@@ -110,6 +110,11 @@ namespace OpenSim.Client.Linden
|
||||
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "LLClientStackModule"; }
|
||||
|
||||
@@ -125,6 +125,11 @@ namespace OpenSim.Client.Linden
|
||||
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "LLProxyLoginModule"; }
|
||||
|
||||
@@ -155,6 +155,11 @@ namespace OpenSim.Client.Linden
|
||||
}
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "LLStandaloneLoginModule"; }
|
||||
|
||||
@@ -81,6 +81,11 @@ namespace OpenSim.Region.CoreModules.Agent.Capabilities
|
||||
get { return "Capabilities Module"; }
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public void AddCapsHandler(UUID agentId)
|
||||
{
|
||||
if (m_scene.RegionInfo.EstateSettings.IsBanned(agentId))
|
||||
|
||||
@@ -290,6 +290,11 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
get { return "CenomeMemoryAssetCache"; }
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// New region is being added to server.
|
||||
/// </summary>
|
||||
|
||||
@@ -54,6 +54,11 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
get { return "CoreAssetCache"; }
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public void Initialise(IConfigSource source)
|
||||
{
|
||||
IConfig moduleConfig = source.Configs["Modules"];
|
||||
|
||||
@@ -146,6 +146,11 @@ namespace Flotsam.RegionModules.AssetCache
|
||||
m_InvalidChars.AddRange(Path.GetInvalidFileNameChars());
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return m_ModuleName; }
|
||||
|
||||
@@ -51,6 +51,11 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
// Instrumentation
|
||||
private uint m_DebugRate = 0;
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "GlynnTuckerAssetCache"; }
|
||||
|
||||
@@ -125,6 +125,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public virtual string Name
|
||||
{
|
||||
get { return "ChatModule"; }
|
||||
|
||||
@@ -74,6 +74,11 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
|
||||
|
||||
private IHttpServer m_HttpServer = null;
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "UrlModule"; }
|
||||
|
||||
@@ -77,6 +77,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Asset
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "RegionAssetService"; }
|
||||
|
||||
@@ -81,6 +81,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Authentication
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "HGAuthServiceInConnectorModule"; }
|
||||
|
||||
@@ -77,6 +77,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Inventory
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "RegionInventoryService"; }
|
||||
|
||||
@@ -81,6 +81,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Land
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "LandServiceInConnectorModule"; }
|
||||
|
||||
@@ -81,6 +81,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Neighbour
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "NeighbourServiceInConnectorModule"; }
|
||||
|
||||
@@ -77,6 +77,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Simulation
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "SimulationService"; }
|
||||
|
||||
@@ -52,6 +52,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
|
||||
|
||||
private bool m_Enabled = false;
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "HGAssetBroker"; }
|
||||
|
||||
@@ -51,6 +51,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
|
||||
|
||||
private bool m_Enabled = false;
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "LocalAssetServicesConnector"; }
|
||||
|
||||
@@ -48,6 +48,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Asset
|
||||
private bool m_Enabled = false;
|
||||
private IImprovedAssetCache m_Cache;
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "RemoteAssetServicesConnector"; }
|
||||
|
||||
@@ -56,6 +56,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
|
||||
private ISessionAuthInventoryService m_HGService;
|
||||
|
||||
private string m_LocalGridInventoryURI = string.Empty;
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "HGInventoryBroker"; }
|
||||
|
||||
@@ -53,6 +53,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
|
||||
private bool m_Enabled = false;
|
||||
private bool m_Initialized = false;
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "LocalInventoryServicesConnector"; }
|
||||
|
||||
@@ -50,6 +50,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Inventory
|
||||
private Scene m_Scene;
|
||||
private InventoryServicesConnector m_RemoteConnector;
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "RemoteInventoryServicesConnector"; }
|
||||
|
||||
@@ -60,6 +60,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Land
|
||||
|
||||
#region ISharedRegionModule
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "LocalLandServicesConnector"; }
|
||||
|
||||
@@ -49,6 +49,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Land
|
||||
private bool m_Enabled = false;
|
||||
private LocalLandServicesConnector m_LocalService;
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "RemoteLandServicesConnector"; }
|
||||
|
||||
@@ -60,6 +60,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Neighbour
|
||||
|
||||
#region ISharedRegionModule
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "LocalNeighbourServicesConnector"; }
|
||||
|
||||
@@ -51,6 +51,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Neighbour
|
||||
private string serviceDll;
|
||||
private List<Scene> m_Scenes = new List<Scene>();
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "RemoteNeighbourServicesConnector"; }
|
||||
|
||||
@@ -46,6 +46,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.User
|
||||
|
||||
private bool m_Enabled = false;
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "LocalUserServicesConnector"; }
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using Nini.Config;
|
||||
using log4net;
|
||||
using System.Reflection;
|
||||
@@ -44,6 +45,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.User
|
||||
|
||||
private bool m_Enabled = false;
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "RemoteUserServicesConnector"; }
|
||||
|
||||
@@ -159,6 +159,11 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "TerrainModule"; }
|
||||
|
||||
@@ -128,6 +128,11 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public virtual string Name
|
||||
{
|
||||
get { return "WorldMapModule"; }
|
||||
|
||||
@@ -39,6 +39,20 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||
/// </value>
|
||||
string Name { get; }
|
||||
|
||||
/// <summary>
|
||||
/// If this returns non-null, it is the type of an interface that
|
||||
/// this module intends to register.
|
||||
/// This will cause the loader to defer loading of this module
|
||||
/// until all other modules have been loaded. If no other module
|
||||
/// has registered the interface by then, this module will be
|
||||
/// activated, else it will remain inactive, letting the other module
|
||||
/// take over. This should return non-null ONLY in modules that are
|
||||
/// intended to be easily replacable, e.g. stub implementations
|
||||
/// that the developer expects to be replaced by third party provided
|
||||
/// modules.
|
||||
/// </summary>
|
||||
Type ReplacableInterface { get; }
|
||||
|
||||
/// <summary>
|
||||
/// This is called to initialize the region module. For shared modules, this is called
|
||||
/// exactly once, after creating the single (shared) instance. For non-shared modules,
|
||||
|
||||
@@ -54,6 +54,11 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
|
||||
#region INonSharedRegionModule Members
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "IRCBridgeModule"; }
|
||||
|
||||
@@ -214,6 +214,11 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
get { return "ConciergeModule"; }
|
||||
|
||||
@@ -177,6 +177,11 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
m_msgTransferModule = null;
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "XmlRpcGroupsMessaging"; }
|
||||
|
||||
@@ -222,6 +222,11 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
m_clientRequestIDFlushTimer.Stop();
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "XmlRpcGroupsModule"; }
|
||||
|
||||
@@ -207,6 +207,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
{
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "Common." + ScriptEngineName; }
|
||||
|
||||
@@ -402,6 +402,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Type ReplacableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return "XEngine"; }
|
||||
|
||||
Reference in New Issue
Block a user