aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
diff options
context:
space:
mode:
authorCharles Krinke2008-06-27 02:15:57 +0000
committerCharles Krinke2008-06-27 02:15:57 +0000
commitca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03 (patch)
tree97f8cce96ea2e98b96b36e523c59361bf00f63b8 /OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
parentMantis#1610. Thank you, Melanie for a patch that: (diff)
downloadopensim-SC_OLD-ca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03.zip
opensim-SC_OLD-ca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03.tar.gz
opensim-SC_OLD-ca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03.tar.bz2
opensim-SC_OLD-ca8d1d57e1bbf49cb52abe81b3a7246dacbe9b03.tar.xz
Mantis#1591. Thank you graciously, Sempuki for a patch that:
Currently module loading is done ad-hoc. I propose creating a simple loader class that leverages Mono.Addins (and perhaps the new .NET addins when they become available in mono). Attached is a basic patch for review that compiles into HEAD, but doesn't yet replace any existing ad-hoc loaders.
Diffstat (limited to '')
-rw-r--r--OpenSim/ApplicationPlugins/Rest/RestPlugin.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
index 4558d4d..78e0e66 100644
--- a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
+++ b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
@@ -188,6 +188,17 @@ namespace OpenSim.ApplicationPlugins.Rest
188 188
189 189
190 #region methods 190 #region methods
191 // TODO: required by IPlugin, but likely not at all right
192 string m_version = "0.0";
193
194 public string Version { get { return m_version; } }
195
196 public void Initialise()
197 {
198 m_log.Info("[RESTPLUGIN]: " + Name + " cannot be default-initialized!");
199 throw new PluginNotInitialisedException (Name);
200 }
201
191 /// <summary> 202 /// <summary>
192 /// This method is called by OpenSimMain immediately after loading the 203 /// This method is called by OpenSimMain immediately after loading the
193 /// plugin and after basic server setup, but before running any server commands. 204 /// plugin and after basic server setup, but before running any server commands.
@@ -357,6 +368,11 @@ namespace OpenSim.ApplicationPlugins.Rest
357 _agents = null; 368 _agents = null;
358 } 369 }
359 370
371 public virtual void Dispose()
372 {
373 Close();
374 }
375
360 /// <summary> 376 /// <summary>
361 /// Return a failure message. 377 /// Return a failure message.
362 /// </summary> 378 /// </summary>