diff options
Diffstat (limited to 'OpenSim/Framework/Communications/InventoryServiceBase.cs')
-rw-r--r-- | OpenSim/Framework/Communications/InventoryServiceBase.cs | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index ec5c493..a031bdf 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs | |||
@@ -59,20 +59,18 @@ namespace OpenSim.Framework.Communications | |||
59 | } | 59 | } |
60 | 60 | ||
61 | /// <summary> | 61 | /// <summary> |
62 | /// Adds a new inventory data plugin - plugins will be requested in the order they were loaded. | 62 | /// Adds a list of inventory data plugins, as described by `provider' |
63 | /// and `connect', to `m_plugins'. | ||
63 | /// </summary> | 64 | /// </summary> |
64 | /// <param name="provider">The filename of the inventory server plugin DLL</param> | 65 | /// <param name="provider"> |
66 | /// The filename of the inventory server plugin DLL. | ||
67 | /// </param> | ||
68 | /// <param name="connect"> | ||
69 | /// The connection string for the storage backend. | ||
70 | /// </param> | ||
65 | public void AddPlugin(string provider, string connect) | 71 | public void AddPlugin(string provider, string connect) |
66 | { | 72 | { |
67 | PluginLoader<IInventoryDataPlugin> loader = | 73 | m_plugins.AddRange(DataPluginFactory.LoadInventoryDataPlugins(provider, connect)); |
68 | new PluginLoader<IInventoryDataPlugin> (new InventoryDataInitialiser(connect)); | ||
69 | |||
70 | // loader will try to load all providers (MySQL, MSSQL, etc) | ||
71 | // unless it is constrainted to the correct "Provider" entry in the addin.xml | ||
72 | loader.Add ("/OpenSim/InventoryData", new PluginProviderFilter(provider)); | ||
73 | loader.Load(); | ||
74 | |||
75 | m_plugins.AddRange(loader.Plugins); | ||
76 | } | 74 | } |
77 | 75 | ||
78 | #endregion | 76 | #endregion |