aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite
diff options
context:
space:
mode:
authorMike Mazur2008-07-18 04:51:41 +0000
committerMike Mazur2008-07-18 04:51:41 +0000
commite0e0db366061eae148364e3d5670f275b1ab25b7 (patch)
treecbd4890958aa28a3ff98a917909ec77247a80d00 /OpenSim/Data/SQLite
parentMake scripts LSL compliant. (diff)
downloadopensim-SC_OLD-e0e0db366061eae148364e3d5670f275b1ab25b7.zip
opensim-SC_OLD-e0e0db366061eae148364e3d5670f275b1ab25b7.tar.gz
opensim-SC_OLD-e0e0db366061eae148364e3d5670f275b1ab25b7.tar.bz2
opensim-SC_OLD-e0e0db366061eae148364e3d5670f275b1ab25b7.tar.xz
Thanks, sempuki, for a patch that moves all grid plugins to new PluginLoader (issue 1763).
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r--OpenSim/Data/SQLite/SQLiteGridData.cs25
1 files changed, 20 insertions, 5 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteGridData.cs b/OpenSim/Data/SQLite/SQLiteGridData.cs
index 6fd7235..1e07458 100644
--- a/OpenSim/Data/SQLite/SQLiteGridData.cs
+++ b/OpenSim/Data/SQLite/SQLiteGridData.cs
@@ -28,23 +28,38 @@
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Data; 30using System.Data;
31using System.Reflection;
31using System.Security.Cryptography; 32using System.Security.Cryptography;
32using System.Text; 33using System.Text;
33using libsecondlife; 34using libsecondlife;
35using log4net;
36using Mono.Addins;
34using OpenSim.Framework; 37using OpenSim.Framework;
35 38
39[assembly : Addin]
40[assembly : AddinDependency("OpenSim.Data", "0.5")]
41
36namespace OpenSim.Data.SQLite 42namespace OpenSim.Data.SQLite
37{ 43{
38 /// <summary> 44 /// <summary>
39 /// A Grid Interface to the SQLite database 45 /// A Grid Interface to the SQLite database
40 /// </summary> 46 /// </summary>
47 [Extension("/OpenSim/GridDataStore")]
41 public class SQLiteGridData : GridDataBase 48 public class SQLiteGridData : GridDataBase
42 { 49 {
50 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
51
43 /// <summary> 52 /// <summary>
44 /// SQLite database manager 53 /// SQLite database manager
45 /// </summary> 54 /// </summary>
46 private SQLiteManager database; 55 private SQLiteManager database;
47 56
57 override public void Initialise()
58 {
59 m_log.Info("[SQLite]: " + Name + " cannot be default-initialized!");
60 throw new PluginNotInitialisedException (Name);
61 }
62
48 /// <summary> 63 /// <summary>
49 /// <list type="bullet"> 64 /// <list type="bullet">
50 /// <item>Initialises Inventory interface</item> 65 /// <item>Initialises Inventory interface</item>
@@ -61,7 +76,7 @@ namespace OpenSim.Data.SQLite
61 /// <summary> 76 /// <summary>
62 /// Shuts down the grid interface 77 /// Shuts down the grid interface
63 /// </summary> 78 /// </summary>
64 override public void Close() 79 override public void Dispose()
65 { 80 {
66 database.Close(); 81 database.Close();
67 } 82 }
@@ -70,18 +85,18 @@ namespace OpenSim.Data.SQLite
70 /// Returns the name of this grid interface 85 /// Returns the name of this grid interface
71 /// </summary> 86 /// </summary>
72 /// <returns>A string containing the grid interface</returns> 87 /// <returns>A string containing the grid interface</returns>
73 override public string getName() 88 override public string Name
74 { 89 {
75 return "SQLite OpenGridData"; 90 get { return "SQLite OpenGridData"; }
76 } 91 }
77 92
78 /// <summary> 93 /// <summary>
79 /// Returns the version of this grid interface 94 /// Returns the version of this grid interface
80 /// </summary> 95 /// </summary>
81 /// <returns>A string containing the version</returns> 96 /// <returns>A string containing the version</returns>
82 override public string getVersion() 97 override public string Version
83 { 98 {
84 return "0.1"; 99 get { return "0.1"; }
85 } 100 }
86 101
87 /// <summary> 102 /// <summary>