diff options
Diffstat (limited to 'OpenSim/Framework/Communications/UserManagerBase.cs')
-rw-r--r-- | OpenSim/Framework/Communications/UserManagerBase.cs | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/OpenSim/Framework/Communications/UserManagerBase.cs b/OpenSim/Framework/Communications/UserManagerBase.cs index b12abb3..886900d 100644 --- a/OpenSim/Framework/Communications/UserManagerBase.cs +++ b/OpenSim/Framework/Communications/UserManagerBase.cs | |||
@@ -74,21 +74,18 @@ namespace OpenSim.Framework.Communications | |||
74 | } | 74 | } |
75 | 75 | ||
76 | /// <summary> | 76 | /// <summary> |
77 | /// Add a new user data plugin - plugins will be requested in the order they were added. | 77 | /// Adds a list of user data plugins, as described by `provider' and |
78 | /// `connect', to `_plugins'. | ||
78 | /// </summary> | 79 | /// </summary> |
79 | /// <param name="provider">The filename to the user data plugin DLL</param> | 80 | /// <param name="provider"> |
80 | /// <param name="connect"></param> | 81 | /// The filename of the inventory server plugin DLL. |
82 | /// </param> | ||
83 | /// <param name="connect"> | ||
84 | /// The connection string for the storage backend. | ||
85 | /// </param> | ||
81 | public void AddPlugin(string provider, string connect) | 86 | public void AddPlugin(string provider, string connect) |
82 | { | 87 | { |
83 | PluginLoader<IUserDataPlugin> loader = | 88 | _plugins.AddRange(DataPluginFactory.LoadUserDataPlugins(provider, connect)); |
84 | new PluginLoader<IUserDataPlugin>(new UserDataInitialiser(connect)); | ||
85 | |||
86 | // loader will try to load all providers (MySQL, MSSQL, etc) | ||
87 | // unless it is constrainted to the correct "Provider" entry in the addin.xml | ||
88 | loader.Add("/OpenSim/UserData", new PluginProviderFilter(provider)); | ||
89 | loader.Load(); | ||
90 | |||
91 | _plugins.AddRange(loader.Plugins); | ||
92 | } | 89 | } |
93 | 90 | ||
94 | #region Get UserProfile | 91 | #region Get UserProfile |