diff options
author | Mike Mazur | 2008-07-31 09:24:28 +0000 |
---|---|---|
committer | Mike Mazur | 2008-07-31 09:24:28 +0000 |
commit | 2270b252656146d9d74b84665a7ace6c3139db30 (patch) | |
tree | 7a967ee50349cf4301ed801e0b8c85f5060ffe1d /OpenSim/Data/MySQL/MySQLInventoryData.cs | |
parent | dropping intermediate GridInfoPlugin.addin.xml, as it's no longer (diff) | |
download | opensim-SC-2270b252656146d9d74b84665a7ace6c3139db30.zip opensim-SC-2270b252656146d9d74b84665a7ace6c3139db30.tar.gz opensim-SC-2270b252656146d9d74b84665a7ace6c3139db30.tar.bz2 opensim-SC-2270b252656146d9d74b84665a7ace6c3139db30.tar.xz |
Thanks, sempuki, for a patch that moves all Grid Server's plugins to
PluginLoader. Fix issue 1871.
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLInventoryData.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLInventoryData.cs | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/OpenSim/Data/MySQL/MySQLInventoryData.cs b/OpenSim/Data/MySQL/MySQLInventoryData.cs index 5bde40a..0fb49c1 100644 --- a/OpenSim/Data/MySQL/MySQLInventoryData.cs +++ b/OpenSim/Data/MySQL/MySQLInventoryData.cs | |||
@@ -38,7 +38,7 @@ namespace OpenSim.Data.MySQL | |||
38 | /// <summary> | 38 | /// <summary> |
39 | /// A MySQL interface for the inventory server | 39 | /// A MySQL interface for the inventory server |
40 | /// </summary> | 40 | /// </summary> |
41 | public class MySQLInventoryData : IInventoryData | 41 | public class MySQLInventoryData : IInventoryDataPlugin |
42 | { | 42 | { |
43 | private static readonly ILog m_log | 43 | private static readonly ILog m_log |
44 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 44 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
@@ -48,6 +48,12 @@ namespace OpenSim.Data.MySQL | |||
48 | /// </summary> | 48 | /// </summary> |
49 | private MySQLManager database; | 49 | private MySQLManager database; |
50 | 50 | ||
51 | public void Initialise() | ||
52 | { | ||
53 | m_log.Info("[MySQLInventoryData]: " + Name + " cannot be default-initialized!"); | ||
54 | throw new PluginNotInitialisedException (Name); | ||
55 | } | ||
56 | |||
51 | /// <summary> | 57 | /// <summary> |
52 | /// <para>Initialises Inventory interface</para> | 58 | /// <para>Initialises Inventory interface</para> |
53 | /// <para> | 59 | /// <para> |
@@ -183,16 +189,16 @@ namespace OpenSim.Data.MySQL | |||
183 | /// The name of this DB provider | 189 | /// The name of this DB provider |
184 | /// </summary> | 190 | /// </summary> |
185 | /// <returns>Name of DB provider</returns> | 191 | /// <returns>Name of DB provider</returns> |
186 | public string getName() | 192 | public string Name |
187 | { | 193 | { |
188 | return "MySQL Inventory Data Interface"; | 194 | get { return "MySQL Inventory Data Interface"; } |
189 | } | 195 | } |
190 | 196 | ||
191 | /// <summary> | 197 | /// <summary> |
192 | /// Closes this DB provider | 198 | /// Closes this DB provider |
193 | /// </summary> | 199 | /// </summary> |
194 | /// <remarks>do nothing</remarks> | 200 | /// <remarks>do nothing</remarks> |
195 | public void Close() | 201 | public void Dispose() |
196 | { | 202 | { |
197 | // Do nothing. | 203 | // Do nothing. |
198 | } | 204 | } |
@@ -201,9 +207,9 @@ namespace OpenSim.Data.MySQL | |||
201 | /// Returns the version of this DB provider | 207 | /// Returns the version of this DB provider |
202 | /// </summary> | 208 | /// </summary> |
203 | /// <returns>A string containing the DB provider version</returns> | 209 | /// <returns>A string containing the DB provider version</returns> |
204 | public string getVersion() | 210 | public string Version |
205 | { | 211 | { |
206 | return database.getVersion(); | 212 | get { return database.getVersion(); } |
207 | } | 213 | } |
208 | 214 | ||
209 | /// <summary> | 215 | /// <summary> |
@@ -692,7 +698,7 @@ namespace OpenSim.Data.MySQL | |||
692 | 698 | ||
693 | 699 | ||
694 | /// <summary> | 700 | /// <summary> |
695 | /// See IInventoryData | 701 | /// See IInventoryDataPlugin |
696 | /// </summary> | 702 | /// </summary> |
697 | /// <param name="parentID"></param> | 703 | /// <param name="parentID"></param> |
698 | /// <returns></returns> | 704 | /// <returns></returns> |