29 using System.Reflection;
30 using System.Collections.Generic;
34 using OpenSim.Framework;
35 using OpenSim.Framework.Servers;
36 using OpenSim.Region.Framework.Interfaces;
37 using OpenSim.Region.Framework.Scenes;
38 using OpenSim.Server.Base;
39 using OpenSim.Server.Handlers.Base;
43 [Extension(Path =
"/OpenSim/RegionModules", NodeName =
"RegionModule", Id =
"InventoryServiceInConnectorModule")]
46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
47 private static bool m_Enabled =
false;
49 private IConfigSource m_Config;
50 bool m_Registered =
false;
52 #region Region Module interface
57 IConfig moduleConfig = config.Configs[
"Modules"];
58 if (moduleConfig != null)
60 m_Enabled = moduleConfig.GetBoolean(
"InventoryServiceInConnector",
false);
63 m_log.Info(
"[INVENTORY IN CONNECTOR]: Inventory Service In Connector enabled");
76 public Type ReplaceableInterface
83 get {
return "RegionInventoryService"; }
95 m_log.Info(
"[RegionInventoryService]: Starting...");
97 Object[] args =
new Object[] { m_Config, MainServer.Instance,
"HGInventoryService" };
99 ServerUtils.LoadPlugin<
IServiceConnector>(
"OpenSim.Server.Handlers.dll:XInventoryInConnector", args);
void AddRegion(Scene scene)
This is called whenever a Scene is added. For shared modules, this can happen several times...
void PostInitialise()
This is called exactly once after all the shared region-modules have been instanciated and IRegionMod...
void RegionLoaded(Scene scene)
This will be called once for every scene loaded. In a shared module this will be multiple times in on...
void Initialise(IConfigSource config)
This is called to initialize the region module. For shared modules, this is called exactly once...
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
Interactive OpenSim region server
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...