* refactor: make startup a template method

This commit is contained in:
Justin Clarke Casey
2008-10-03 15:11:29 +00:00
parent 5c0a0bc2e0
commit 70124a3213
9 changed files with 21 additions and 25 deletions

View File

@@ -94,6 +94,11 @@ namespace OpenSim.Framework.Servers
Thread.CurrentThread.Name = "ConsoleThread";
ThreadTracker.Add(Thread.CurrentThread);
}
/// <summary>
/// Must be overriden by child classes for their own server specific startup behaviour.
/// </summary>
protected abstract void StartupSpecific();
/// <summary>
/// Print statistics to the logfile, if they are active
@@ -202,11 +207,13 @@ namespace OpenSim.Framework.Servers
/// </summary>
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();
}
/// <summary>