diff options
author | Tedd Hansen | 2008-11-09 10:30:46 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-11-09 10:30:46 +0000 |
commit | 853ba745b517f8dfb5c5b955637454e4c7d25507 (patch) | |
tree | a11ac849bcf4f80c91e87c4fb72a32f7d591e486 /OpenSim/ApplicationPlugins/ScriptEngine/RegionEngineLoader.cs | |
parent | Update svn properties. Add copyright headers. Minor formatting cleanup. (diff) | |
download | opensim-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.cs | 6 |
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 | } |