aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs
diff options
context:
space:
mode:
authorJeff Ames2008-09-21 02:41:22 +0000
committerJeff Ames2008-09-21 02:41:22 +0000
commitc8349e21c43b1232aa923783a39cca224460551a (patch)
tree883f756507ea9984f5e7d56a4aa507d0640b57ee /OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs
parentFix an exception in new ScriptEngine loader where a region would (diff)
downloadopensim-SC_OLD-c8349e21c43b1232aa923783a39cca224460551a.zip
opensim-SC_OLD-c8349e21c43b1232aa923783a39cca224460551a.tar.gz
opensim-SC_OLD-c8349e21c43b1232aa923783a39cca224460551a.tar.bz2
opensim-SC_OLD-c8349e21c43b1232aa923783a39cca224460551a.tar.xz
Update svn properties, minor formatting cleanup.
Diffstat (limited to 'OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs')
-rw-r--r--OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs178
1 files changed, 89 insertions, 89 deletions
diff --git a/OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs b/OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs
index cd584d5..32c7748 100644
--- a/OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs
+++ b/OpenSim/ApplicationPlugins/ScriptEngine/ScriptEnginePlugin.cs
@@ -1,89 +1,89 @@
1/* 1/*
2 * Copyright (c) Contributors, http://opensimulator.org/ 2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders. 3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright 9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSim Project nor the 12 * * Neither the name of the OpenSim Project nor the
13 * names of its contributors may be used to endorse or promote products 13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission. 14 * derived from this software without specific prior written permission.
15 * 15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY 16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY 19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27using System; 27using System;
28using System.Collections.Generic; 28using System.Collections.Generic;
29using System.Reflection; 29using System.Reflection;
30using System.Text; 30using System.Text;
31using log4net; 31using log4net;
32 32
33namespace OpenSim.ApplicationPlugins.ScriptEngine 33namespace OpenSim.ApplicationPlugins.ScriptEngine
34{ 34{
35 public class ScriptEnginePlugin : IApplicationPlugin 35 public class ScriptEnginePlugin : IApplicationPlugin
36 { 36 {
37 internal static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 37 internal static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
38 internal OpenSimBase m_OpenSim; 38 internal OpenSimBase m_OpenSim;
39 private ComponentLoader pluginLoader; 39 private ComponentLoader pluginLoader;
40 40
41 public void Initialise(OpenSimBase openSim) 41 public void Initialise(OpenSimBase openSim)
42 { 42 {
43 // Our objective: Load component .dll's 43 // Our objective: Load component .dll's
44 m_OpenSim = openSim; 44 m_OpenSim = openSim;
45 pluginLoader = new ComponentLoader(this); 45 pluginLoader = new ComponentLoader(this);
46 46
47 m_log.Info("[" + Name + "]: Script Engine Component System"); 47 m_log.Info("[" + Name + "]: Script Engine Component System");
48 m_log.Info("[" + Name + "]: Loading Script Engine Components"); 48 m_log.Info("[" + Name + "]: Loading Script Engine Components");
49 pluginLoader.Load("ScriptEngines"); 49 pluginLoader.Load("ScriptEngines");
50 50
51 } 51 }
52 #region IApplicationPlugin stuff 52 #region IApplicationPlugin stuff
53 /// <summary> 53 /// <summary>
54 /// Returns the plugin version 54 /// Returns the plugin version
55 /// </summary> 55 /// </summary>
56 /// <returns>Plugin version in MAJOR.MINOR.REVISION.BUILD format</returns> 56 /// <returns>Plugin version in MAJOR.MINOR.REVISION.BUILD format</returns>
57 public string Version 57 public string Version
58 { 58 {
59 get { return "1.0.0.0"; } 59 get { return "1.0.0.0"; }
60 } 60 }
61 61
62 /// <summary> 62 /// <summary>
63 /// Returns the plugin name 63 /// Returns the plugin name
64 /// </summary> 64 /// </summary>
65 /// <returns>Plugin name, eg MySQL User Provider</returns> 65 /// <returns>Plugin name, eg MySQL User Provider</returns>
66 public string Name 66 public string Name
67 { 67 {
68 get { return "ScriptEngine"; } 68 get { return "ScriptEngine"; }
69 } 69 }
70 70
71 /// <summary> 71 /// <summary>
72 /// Default-initialises the plugin 72 /// Default-initialises the plugin
73 /// </summary> 73 /// </summary>
74 public void Initialise() 74 public void Initialise()
75 { 75 {
76 //throw new NotImplementedException(); 76 //throw new NotImplementedException();
77 } 77 }
78 78
79 ///<summary> 79 ///<summary>
80 ///Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. 80 ///Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
81 ///</summary> 81 ///</summary>
82 ///<filterpriority>2</filterpriority> 82 ///<filterpriority>2</filterpriority>
83 public void Dispose() 83 public void Dispose()
84 { 84 {
85 //throw new NotImplementedException(); 85 //throw new NotImplementedException();
86 } 86 }
87 #endregion 87 #endregion
88 } 88 }
89} 89}