From 2a3c79df83e800d5dfe75a1a3b140ed81da2b1d6 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 16 Jul 2007 15:40:11 +0000 Subject: changed to native line ending encoding --- OpenSim/Region/Environment/StorageManager.cs | 120 +++++++++++++-------------- 1 file changed, 60 insertions(+), 60 deletions(-) (limited to 'OpenSim/Region/Environment/StorageManager.cs') diff --git a/OpenSim/Region/Environment/StorageManager.cs b/OpenSim/Region/Environment/StorageManager.cs index 8f8ac97..fb12c4d 100644 --- a/OpenSim/Region/Environment/StorageManager.cs +++ b/OpenSim/Region/Environment/StorageManager.cs @@ -1,60 +1,60 @@ -using System; -using System.Collections.Generic; -using System.Text; - -using OpenSim.Framework; -using OpenSim.Framework.Communications; -using OpenSim.Framework.Servers; -using OpenSim.Region.Capabilities; -using OpenSim.Region.Environment.Scenes; -using OpenSim.Region.Interfaces; - -using System.Reflection; - -namespace OpenSim.Region.Environment -{ - public class StorageManager - { - private IRegionDataStore m_dataStore; - - public IRegionDataStore DataStore - { - get - { - return m_dataStore; - } - } - - public StorageManager(IRegionDataStore storage) - { - m_dataStore = storage; - } - - public StorageManager(string dllName, string dataStoreFile, string dataStoreDB) - { - Assembly pluginAssembly = Assembly.LoadFrom(dllName); - - foreach (Type pluginType in pluginAssembly.GetTypes()) - { - if (pluginType.IsPublic) - { - Type typeInterface = pluginType.GetInterface("IRegionDataStore", true); - - if (typeInterface != null) - { - IRegionDataStore plug = (IRegionDataStore)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString())); - plug.Initialise(dataStoreFile, dataStoreDB); - - m_dataStore = plug; - } - - typeInterface = null; - } - } - - pluginAssembly = null; - - //TODO: Add checking and warning to make sure it initialised. - } - } -} +using System; +using System.Collections.Generic; +using System.Text; + +using OpenSim.Framework; +using OpenSim.Framework.Communications; +using OpenSim.Framework.Servers; +using OpenSim.Region.Capabilities; +using OpenSim.Region.Environment.Scenes; +using OpenSim.Region.Interfaces; + +using System.Reflection; + +namespace OpenSim.Region.Environment +{ + public class StorageManager + { + private IRegionDataStore m_dataStore; + + public IRegionDataStore DataStore + { + get + { + return m_dataStore; + } + } + + public StorageManager(IRegionDataStore storage) + { + m_dataStore = storage; + } + + public StorageManager(string dllName, string dataStoreFile, string dataStoreDB) + { + Assembly pluginAssembly = Assembly.LoadFrom(dllName); + + foreach (Type pluginType in pluginAssembly.GetTypes()) + { + if (pluginType.IsPublic) + { + Type typeInterface = pluginType.GetInterface("IRegionDataStore", true); + + if (typeInterface != null) + { + IRegionDataStore plug = (IRegionDataStore)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString())); + plug.Initialise(dataStoreFile, dataStoreDB); + + m_dataStore = plug; + } + + typeInterface = null; + } + } + + pluginAssembly = null; + + //TODO: Add checking and warning to make sure it initialised. + } + } +} -- cgit v1.1