Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Support
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv2180/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Support
Modified Files:
SessionScopeSettings.cs
Log Message:
fixed SPRNET-785 - removed EntityInterceptor caching
Index: SessionScopeSettings.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Support/SessionScopeSettings.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SessionScopeSettings.cs 22 Aug 2007 20:16:36 -0000 1.1
--- SessionScopeSettings.cs 21 Mar 2008 01:17:12 -0000 1.2
***************
*** 81,84 ****
--- 81,85 ----
{
// noop
+ this.entityInterceptorInitialized = false;
}
***************
*** 119,124 ****
/// </summary>
/// <remarks>
! /// If this property is requested for the first time, <see cref="ResolveEntityInterceptor"/> is called.
! /// This allows derived classes to override the behaviour of how to obtain the concrete <see cref="IInterceptor"/> instance.
/// </remarks>
public IInterceptor EntityInterceptor
--- 120,126 ----
/// </summary>
/// <remarks>
! /// If the entity interceptor is not set by the constructor, this property calls
! /// <see cref="ResolveEntityInterceptor"/> to obtain an instance. This allows derived classes to
! /// override the behaviour of how to obtain the concrete <see cref="IInterceptor"/> instance.
/// </remarks>
public IInterceptor EntityInterceptor
***************
*** 128,133 ****
if (!entityInterceptorInitialized)
{
! entityInterceptorInitialized = true;
! entityInterceptor = ResolveEntityInterceptor();
}
return entityInterceptor;
--- 130,134 ----
if (!entityInterceptorInitialized)
{
! return ResolveEntityInterceptor();
}
return entityInterceptor;
|