diff options
Diffstat (limited to 'OpenSim/Grid/AssetInventoryServer/AssetInventoryServer.cs')
-rw-r--r-- | OpenSim/Grid/AssetInventoryServer/AssetInventoryServer.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/AssetInventoryServer.cs b/OpenSim/Grid/AssetInventoryServer/AssetInventoryServer.cs index d37c63d..e51f559 100644 --- a/OpenSim/Grid/AssetInventoryServer/AssetInventoryServer.cs +++ b/OpenSim/Grid/AssetInventoryServer/AssetInventoryServer.cs | |||
@@ -106,8 +106,8 @@ namespace OpenSim.Grid.AssetInventoryServer | |||
106 | return false; | 106 | return false; |
107 | } | 107 | } |
108 | 108 | ||
109 | StorageProvider = LoadAssetInventoryServerPlugin("/OpenSim/AssetInventoryServer/StorageProvider") as IAssetStorageProvider; | 109 | StorageProvider = LoadAssetInventoryServerPlugin("/OpenSim/AssetInventoryServer/StorageProvider", "OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim.dll") as IAssetStorageProvider; |
110 | MetricsProvider = LoadAssetInventoryServerPlugin("/OpenSim/AssetInventoryServer/MetricsProvider") as IMetricsProvider; | 110 | MetricsProvider = LoadAssetInventoryServerPlugin("/OpenSim/AssetInventoryServer/MetricsProvider", "") as IMetricsProvider; |
111 | 111 | ||
112 | try | 112 | try |
113 | { | 113 | { |
@@ -120,7 +120,7 @@ namespace OpenSim.Grid.AssetInventoryServer | |||
120 | return false; | 120 | return false; |
121 | } | 121 | } |
122 | 122 | ||
123 | frontend = LoadAssetInventoryServerPlugin("/OpenSim/AssetInventoryServer/Frontend"); | 123 | frontend = LoadAssetInventoryServerPlugin("/OpenSim/AssetInventoryServer/Frontend", ""); |
124 | 124 | ||
125 | return true; | 125 | return true; |
126 | } | 126 | } |
@@ -179,13 +179,16 @@ namespace OpenSim.Grid.AssetInventoryServer | |||
179 | 179 | ||
180 | #endregion | 180 | #endregion |
181 | 181 | ||
182 | private IAssetInventoryServerPlugin LoadAssetInventoryServerPlugin(string addinPath) | 182 | private IAssetInventoryServerPlugin LoadAssetInventoryServerPlugin(string addinPath, string provider) |
183 | { | 183 | { |
184 | PluginLoader<IAssetInventoryServerPlugin> loader = new PluginLoader<IAssetInventoryServerPlugin>(new AssetInventoryServerPluginInitialiser(this)); | 184 | PluginLoader<IAssetInventoryServerPlugin> loader = new PluginLoader<IAssetInventoryServerPlugin>(new AssetInventoryServerPluginInitialiser(this)); |
185 | 185 | ||
186 | //loader.Add ("/OpenSim/AssetInventoryServer/StorageProvider", new PluginProviderFilter (provider)); | 186 | if (provider == String.Empty) |
187 | //loader.Add("/OpenSim/AssetInventoryServer/StorageProvider", new PluginCountConstraint(1)); | 187 | loader.Add(addinPath); |
188 | loader.Add(addinPath); | 188 | else |
189 | loader.Add(addinPath, new PluginProviderFilter(provider)); | ||
190 | //loader.Add(addinPath, new PluginCountConstraint(1)); | ||
191 | |||
189 | loader.Load(); | 192 | loader.Load(); |
190 | 193 | ||
191 | return loader.Plugin; | 194 | return loader.Plugin; |