Make some more modules inheritable

LSLKeyTest
Melanie Thielker 2016-06-21 01:46:38 +02:00
parent 9de8cefee5
commit 8e40bb6fb7
2 changed files with 16 additions and 16 deletions

View File

@ -55,9 +55,9 @@ namespace OpenSim.Capabilities.Handlers
{ {
private static readonly ILog m_log = private static readonly ILog m_log =
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private IUserManagement m_UserManagement; protected IUserManagement m_UserManagement;
public GetDisplayNamesHandler(string path, IUserManagement umService, string name, string description) public virtual GetDisplayNamesHandler(string path, IUserManagement umService, string name, string description)
: base("GET", path, name, description) : base("GET", path, name, description)
{ {
m_UserManagement = umService; m_UserManagement = umService;
@ -120,4 +120,4 @@ namespace OpenSim.Capabilities.Handlers
} }
} }
} }

View File

@ -57,16 +57,16 @@ namespace OpenSim.Region.ClientStack.Linden
private static readonly ILog m_log = private static readonly ILog m_log =
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private Scene m_scene; protected Scene m_scene;
private IUserManagement m_UserManager; protected IUserManagement m_UserManager;
private bool m_Enabled = false; protected bool m_Enabled = false;
private string m_URL; protected string m_URL;
#region ISharedRegionModule Members #region ISharedRegionModule Members
public void Initialise(IConfigSource source) public virtual void Initialise(IConfigSource source)
{ {
IConfig config = source.Configs["ClientStack.LindenCaps"]; IConfig config = source.Configs["ClientStack.LindenCaps"];
if (config == null) if (config == null)
@ -77,7 +77,7 @@ namespace OpenSim.Region.ClientStack.Linden
m_Enabled = true; m_Enabled = true;
} }
public void AddRegion(Scene s) public virtual void AddRegion(Scene s)
{ {
if (!m_Enabled) if (!m_Enabled)
return; return;
@ -85,7 +85,7 @@ namespace OpenSim.Region.ClientStack.Linden
m_scene = s; m_scene = s;
} }
public void RemoveRegion(Scene s) public virtual void RemoveRegion(Scene s)
{ {
if (!m_Enabled) if (!m_Enabled)
return; return;
@ -94,7 +94,7 @@ namespace OpenSim.Region.ClientStack.Linden
m_scene = null; m_scene = null;
} }
public void RegionLoaded(Scene s) public virtual void RegionLoaded(Scene s)
{ {
if (!m_Enabled) if (!m_Enabled)
return; return;
@ -103,22 +103,22 @@ namespace OpenSim.Region.ClientStack.Linden
m_scene.EventManager.OnRegisterCaps += RegisterCaps; m_scene.EventManager.OnRegisterCaps += RegisterCaps;
} }
public void PostInitialise() public virtual void PostInitialise()
{ {
} }
public void Close() { } public virtual void Close() { }
public string Name { get { return "GetDisplayNamesModule"; } } public virtual string Name { get { return "GetDisplayNamesModule"; } }
public Type ReplaceableInterface public virtual Type ReplaceableInterface
{ {
get { return null; } get { return null; }
} }
#endregion #endregion
public void RegisterCaps(UUID agentID, Caps caps) public virtual void RegisterCaps(UUID agentID, Caps caps)
{ {
UUID capID = UUID.Random(); UUID capID = UUID.Random();