aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/UserManagerBase.cs
diff options
context:
space:
mode:
authorMike Mazur2009-02-03 05:20:44 +0000
committerMike Mazur2009-02-03 05:20:44 +0000
commitd259238c748aafe366fd1d04e0248ef23116fd28 (patch)
treeec85d8863cffedda47d396d007459b5499bd8162 /OpenSim/Framework/Communications/UserManagerBase.cs
parent- move OpenSim/Framework/IUserData.cs to OpenSim/Data/IUserData.cs (diff)
downloadopensim-SC-d259238c748aafe366fd1d04e0248ef23116fd28.zip
opensim-SC-d259238c748aafe366fd1d04e0248ef23116fd28.tar.gz
opensim-SC-d259238c748aafe366fd1d04e0248ef23116fd28.tar.bz2
opensim-SC-d259238c748aafe366fd1d04e0248ef23116fd28.tar.xz
- moved data plugin loading code from various places to
OpenSim/Data/DataPluginFactory.cs - removed dependencies on a few executable assemblies in bin/OpenSim.Data.addin.xml - trim trailing whitespace
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/UserManagerBase.cs21
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