|
From: <fab...@us...> - 2009-06-23 20:20:19
|
Revision: 4520
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4520&view=rev
Author: fabiomaulo
Date: 2009-06-23 20:20:18 +0000 (Tue, 23 Jun 2009)
Log Message:
-----------
Minor refactoring
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/HibernateConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/SessionFactoryConfiguration.cs
trunk/nhibernate/src/NHibernate/Cfg/IHibernateConfiguration.cs
trunk/nhibernate/src/NHibernate/NHibernate.csproj
Added Paths:
-----------
trunk/nhibernate/src/NHibernate/Cfg/ISessionFactoryConfiguration.cs
Modified: trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/HibernateConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/HibernateConfiguration.cs 2009-06-23 20:09:53 UTC (rev 4519)
+++ trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/HibernateConfiguration.cs 2009-06-23 20:20:18 UTC (rev 4520)
@@ -153,7 +153,7 @@
/// The <see cref="SessionFactoryConfiguration"/> if the session-factory exists in hibernate-configuration;
/// Otherwise null.
/// </summary>
- public SessionFactoryConfiguration SessionFactory
+ public ISessionFactoryConfiguration SessionFactory
{
get { return sessionFactory; }
}
Modified: trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/SessionFactoryConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/SessionFactoryConfiguration.cs 2009-06-23 20:09:53 UTC (rev 4519)
+++ trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/SessionFactoryConfiguration.cs 2009-06-23 20:20:18 UTC (rev 4520)
@@ -7,7 +7,7 @@
/// <summary>
/// Configuration parsed values for a session-factory XML node.
/// </summary>
- public class SessionFactoryConfiguration
+ public class SessionFactoryConfiguration : ISessionFactoryConfiguration
{
//private static readonly ILog log = LogManager.GetLogger(typeof(SessionFactoryConfiguration));
Modified: trunk/nhibernate/src/NHibernate/Cfg/IHibernateConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/IHibernateConfiguration.cs 2009-06-23 20:09:53 UTC (rev 4519)
+++ trunk/nhibernate/src/NHibernate/Cfg/IHibernateConfiguration.cs 2009-06-23 20:20:18 UTC (rev 4520)
@@ -1,5 +1,4 @@
-using System;
-using NHibernate.Cfg.ConfigurationSchema;
+using NHibernate.Cfg.ConfigurationSchema;
namespace NHibernate.Cfg
{
@@ -7,6 +6,6 @@
{
BytecodeProviderType ByteCodeProviderType { get; }
bool UseReflectionOptimizer { get; }
- SessionFactoryConfiguration SessionFactory { get; }
+ ISessionFactoryConfiguration SessionFactory { get; }
}
}
Added: trunk/nhibernate/src/NHibernate/Cfg/ISessionFactoryConfiguration.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Cfg/ISessionFactoryConfiguration.cs (rev 0)
+++ trunk/nhibernate/src/NHibernate/Cfg/ISessionFactoryConfiguration.cs 2009-06-23 20:20:18 UTC (rev 4520)
@@ -0,0 +1,42 @@
+using System.Collections.Generic;
+using NHibernate.Cfg.ConfigurationSchema;
+
+namespace NHibernate.Cfg
+{
+ public interface ISessionFactoryConfiguration {
+ /// <summary>
+ /// The session factory name.
+ /// </summary>
+ string Name { get; }
+
+ /// <summary>
+ /// Session factory propeties bag.
+ /// </summary>
+ IDictionary<string, string> Properties { get; }
+
+ /// <summary>
+ /// Session factory mapping configuration.
+ /// </summary>
+ IList<MappingConfiguration> Mappings { get; }
+
+ /// <summary>
+ /// Session factory class-cache configurations.
+ /// </summary>
+ IList<ClassCacheConfiguration> ClassesCache { get; }
+
+ /// <summary>
+ /// Session factory collection-cache configurations.
+ /// </summary>
+ IList<CollectionCacheConfiguration> CollectionsCache { get; }
+
+ /// <summary>
+ /// Session factory event configurations.
+ /// </summary>
+ IList<EventConfiguration> Events { get; }
+
+ /// <summary>
+ /// Session factory listener configurations.
+ /// </summary>
+ IList<ListenerConfiguration> Listeners { get; }
+ }
+}
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate/NHibernate.csproj
===================================================================
--- trunk/nhibernate/src/NHibernate/NHibernate.csproj 2009-06-23 20:09:53 UTC (rev 4519)
+++ trunk/nhibernate/src/NHibernate/NHibernate.csproj 2009-06-23 20:20:18 UTC (rev 4520)
@@ -459,6 +459,7 @@
<Compile Include="Bytecode\ProxyFactoryFactoryNotConfiguredException.cs" />
<Compile Include="Bytecode\UnableToLoadProxyFactoryFactoryException.cs" />
<Compile Include="Cache\FakeCache.cs" />
+ <Compile Include="Cfg\ISessionFactoryConfiguration.cs" />
<Compile Include="Cfg\MappingSchema\AbstractDecoratable.cs" />
<Compile Include="Cfg\MappingSchema\HbmTimestamp.cs" />
<Compile Include="Cfg\MappingSchema\HbmVersion.cs" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|