From 2270b252656146d9d74b84665a7ace6c3139db30 Mon Sep 17 00:00:00 2001
From: Mike Mazur
Date: Thu, 31 Jul 2008 09:24:28 +0000
Subject: Thanks, sempuki, for a patch that moves all Grid Server's plugins to
PluginLoader. Fix issue 1871.
---
OpenSim/Data/SQLite/SQLiteInventoryStore.cs | 33 ++++++++++++++++++-----------
OpenSim/Data/SQLite/SQLiteUserData.cs | 8 +++++++
2 files changed, 29 insertions(+), 12 deletions(-)
(limited to 'OpenSim/Data/SQLite')
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
index 99560a0..ef4ef99 100644
--- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
+++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
@@ -39,7 +39,7 @@ namespace OpenSim.Data.SQLite
///
/// An Inventory Interface to the SQLite database
///
- public class SQLiteInventoryStore : SQLiteUtil, IInventoryData
+ public class SQLiteInventoryStore : SQLiteUtil, IInventoryDataPlugin
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
@@ -50,6 +50,12 @@ namespace OpenSim.Data.SQLite
private SqliteDataAdapter invItemsDa;
private SqliteDataAdapter invFoldersDa;
+ public void Initialise()
+ {
+ m_log.Info("[SQLiteInventoryData]: " + Name + " cannot be default-initialized!");
+ throw new PluginNotInitialisedException (Name);
+ }
+
///
///
/// - Initialises Inventory interface
@@ -277,7 +283,7 @@ namespace OpenSim.Data.SQLite
///
/// Closes the inventory interface
///
- public void Close()
+ public void Dispose()
{
}
@@ -285,25 +291,28 @@ namespace OpenSim.Data.SQLite
/// The name of this DB provider
///
/// Name of DB provider
- public string getName()
+ public string Name
{
- return "SQLite Inventory Data Interface";
+ get { return "SQLite Inventory Data Interface"; }
}
///
/// Returns the version of this DB provider
///
/// A string containing the DB provider version
- public string getVersion()
+ public string Version
{
- Module module = GetType().Module;
- // string dllName = module.Assembly.ManifestModule.Name;
- Version dllVersion = module.Assembly.GetName().Version;
+ get
+ {
+ Module module = GetType().Module;
+ // string dllName = module.Assembly.ManifestModule.Name;
+ Version dllVersion = module.Assembly.GetName().Version;
- return
- string.Format("{0}.{1}.{2}.{3}", dllVersion.Major, dllVersion.Minor, dllVersion.Build,
- dllVersion.Revision);
+ return
+ string.Format("{0}.{1}.{2}.{3}", dllVersion.Major, dllVersion.Minor, dllVersion.Build,
+ dllVersion.Revision);
+ }
}
///
@@ -399,7 +408,7 @@ namespace OpenSim.Data.SQLite
}
///
- /// See IInventoryData
+ /// See IInventoryDataPlugin
///
///
///
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs
index c7673bd..2d3687c 100644
--- a/OpenSim/Data/SQLite/SQLiteUserData.cs
+++ b/OpenSim/Data/SQLite/SQLiteUserData.cs
@@ -65,6 +65,12 @@ namespace OpenSim.Data.SQLite
private SqliteDataAdapter daf;
SqliteConnection g_conn;
+ public override void Initialise()
+ {
+ m_log.Info("[SQLiteUserData]: " + Name + " cannot be default-initialized!");
+ throw new PluginNotInitialisedException (Name);
+ }
+
///
///
/// - Initialises User Interface
@@ -124,6 +130,8 @@ namespace OpenSim.Data.SQLite
return;
}
+ public override void Dispose () {}
+
///
/// see IUserData,
/// Get user data profile by UUID
--
cgit v1.1