diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/InventoryServiceBase.cs | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index 5841151..777e15b 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs | |||
@@ -48,20 +48,29 @@ namespace OpenSim.Framework.Communications | |||
48 | #region Plugin methods | 48 | #region Plugin methods |
49 | 49 | ||
50 | /// <summary> | 50 | /// <summary> |
51 | /// Adds a new user server plugin - plugins will be requested in the order they were loaded. | 51 | /// Add a new inventory data plugin - plugins will be requested in the order they were added. |
52 | /// </summary> | 52 | /// </summary> |
53 | /// <param name="provider">The filename to the user server plugin DLL</param> | 53 | /// <param name="plugin">The plugin that will provide data</param> |
54 | public void AddPlugin(IInventoryDataPlugin plugin) | ||
55 | { | ||
56 | m_plugins.Add(plugin); | ||
57 | } | ||
58 | |||
59 | /// <summary> | ||
60 | /// Adds a new inventory data plugin - plugins will be requested in the order they were loaded. | ||
61 | /// </summary> | ||
62 | /// <param name="provider">The filename of the inventory server plugin DLL</param> | ||
54 | public void AddPlugin(string provider, string connect) | 63 | public void AddPlugin(string provider, string connect) |
55 | { | 64 | { |
56 | PluginLoader<IInventoryDataPlugin> loader = | 65 | PluginLoader<IInventoryDataPlugin> loader = |
57 | new PluginLoader<IInventoryDataPlugin> (new InventoryDataInitialiser (connect)); | 66 | new PluginLoader<IInventoryDataPlugin> (new InventoryDataInitialiser(connect)); |
58 | 67 | ||
59 | // loader will try to load all providers (MySQL, MSSQL, etc) | 68 | // loader will try to load all providers (MySQL, MSSQL, etc) |
60 | // unless it is constrainted to the correct "Provider" entry in the addin.xml | 69 | // unless it is constrainted to the correct "Provider" entry in the addin.xml |
61 | loader.Add ("/OpenSim/InventoryData", new PluginProviderFilter (provider)); | 70 | loader.Add ("/OpenSim/InventoryData", new PluginProviderFilter(provider)); |
62 | loader.Load(); | 71 | loader.Load(); |
63 | 72 | ||
64 | m_plugins = loader.Plugins; | 73 | m_plugins.AddRange(loader.Plugins); |
65 | } | 74 | } |
66 | 75 | ||
67 | #endregion | 76 | #endregion |