From 70124a3213d013098507b08ed7f9301da6845882 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Fri, 3 Oct 2008 15:11:29 +0000
Subject: * refactor: make startup a template method
---
OpenSim/Framework/Servers/BaseOpenSimServer.cs | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Framework/Servers')
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index e799c23..099060a 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -94,6 +94,11 @@ namespace OpenSim.Framework.Servers
Thread.CurrentThread.Name = "ConsoleThread";
ThreadTracker.Add(Thread.CurrentThread);
}
+
+ ///
+ /// Must be overriden by child classes for their own server specific startup behaviour.
+ ///
+ protected abstract void StartupSpecific();
///
/// Print statistics to the logfile, if they are active
@@ -202,11 +207,13 @@ namespace OpenSim.Framework.Servers
///
public virtual void Startup()
{
- m_log.Info("[STARTUP]: Beginning startup processing");
+ m_log.Info("[STARTUP]: Beginning startup processing");
EnhanceVersionInformation();
-
+
m_log.Info("[STARTUP]: Version: " + m_version + "\n");
+
+ StartupSpecific();
}
///
--
cgit v1.1