Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18064/Impl
Modified Files:
MessageHelper.cs SessionFactoryObjectFactory.cs
Log Message:
Sealed the class and made default ctor private.
Index: MessageHelper.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/MessageHelper.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** MessageHelper.cs 31 Dec 2004 19:52:03 -0000 1.4
--- MessageHelper.cs 23 Jan 2005 15:50:21 -0000 1.5
***************
*** 11,14 ****
--- 11,20 ----
internal sealed class MessageHelper
{
+
+ private MessageHelper()
+ {
+ // should not be created
+ }
+
/// <summary>
///
Index: SessionFactoryObjectFactory.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/SessionFactoryObjectFactory.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** SessionFactoryObjectFactory.cs 31 Dec 2004 19:54:30 -0000 1.3
--- SessionFactoryObjectFactory.cs 23 Jan 2005 15:50:21 -0000 1.4
***************
*** 21,25 ****
/// </para>
/// </remarks>
! public class SessionFactoryObjectFactory
{
// to stop this class from being unloaded - this is a comment
--- 21,25 ----
/// </para>
/// </remarks>
! public sealed class SessionFactoryObjectFactory
{
// to stop this class from being unloaded - this is a comment
***************
*** 27,30 ****
--- 27,34 ----
private static readonly SessionFactoryObjectFactory Instance; // not used !?!
private static readonly ILog log;
+
+ // in h2.0.3 these use a class called "FastHashMap"
+ private static readonly Hashtable Instances = new Hashtable();
+ private static readonly Hashtable NamedInstances = new Hashtable();
/// <summary></summary>
***************
*** 36,43 ****
}
! // in h2.0.3 these use a class called "FastHashMap"
! private static readonly Hashtable Instances = new Hashtable();
! private static readonly Hashtable NamedInstances = new Hashtable();
!
/// <summary>
--- 40,47 ----
}
! private SessionFactoryObjectFactory()
! {
! // should not be created
! }
/// <summary>
|