aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/ScriptEngine/RegionEngineLoader.cs
diff options
context:
space:
mode:
authorTedd Hansen2008-11-09 10:30:46 +0000
committerTedd Hansen2008-11-09 10:30:46 +0000
commit853ba745b517f8dfb5c5b955637454e4c7d25507 (patch)
treea11ac849bcf4f80c91e87c4fb72a32f7d591e486 /OpenSim/ApplicationPlugins/ScriptEngine/RegionEngineLoader.cs
parentUpdate svn properties. Add copyright headers. Minor formatting cleanup. (diff)
downloadopensim-SC-853ba745b517f8dfb5c5b955637454e4c7d25507.zip
opensim-SC-853ba745b517f8dfb5c5b955637454e4c7d25507.tar.gz
opensim-SC-853ba745b517f8dfb5c5b955637454e4c7d25507.tar.bz2
opensim-SC-853ba745b517f8dfb5c5b955637454e4c7d25507.tar.xz
Refactoring: Moved component creation to "ComponentFactory" as dictated by convention
Diffstat (limited to 'OpenSim/ApplicationPlugins/ScriptEngine/RegionEngineLoader.cs')
-rw-r--r--OpenSim/ApplicationPlugins/ScriptEngine/RegionEngineLoader.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/ApplicationPlugins/ScriptEngine/RegionEngineLoader.cs b/OpenSim/ApplicationPlugins/ScriptEngine/RegionEngineLoader.cs
index 1023238..998f017 100644
--- a/OpenSim/ApplicationPlugins/ScriptEngine/RegionEngineLoader.cs
+++ b/OpenSim/ApplicationPlugins/ScriptEngine/RegionEngineLoader.cs
@@ -97,16 +97,16 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
97 m_log.DebugFormat("[{0}] Loading region script engine engine \"{1}\".", Name, tempScriptEngineName); 97 m_log.DebugFormat("[{0}] Loading region script engine engine \"{1}\".", Name, tempScriptEngineName);
98 try 98 try
99 { 99 {
100 lock (ScriptEnginePlugin.scriptEngines) 100 lock (ComponentFactory.scriptEngines)
101 { 101 {
102 if (!ScriptEnginePlugin.scriptEngines.ContainsKey(tempScriptEngineName)) 102 if (!ComponentFactory.scriptEngines.ContainsKey(tempScriptEngineName))
103 { 103 {
104 m_log.ErrorFormat("[{0}] Unable to load region script engine: Script engine \"{1}\" does not exist.", Name, tempScriptEngineName); 104 m_log.ErrorFormat("[{0}] Unable to load region script engine: Script engine \"{1}\" does not exist.", Name, tempScriptEngineName);
105 } 105 }
106 else 106 else
107 { 107 {
108 scriptEngine = 108 scriptEngine =
109 Activator.CreateInstance(ScriptEnginePlugin.scriptEngines[tempScriptEngineName]) as 109 Activator.CreateInstance(ComponentFactory.scriptEngines[tempScriptEngineName]) as
110 IScriptEngine; 110 IScriptEngine;
111 } 111 }
112 } 112 }