Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Aop/Framework/AutoProxy
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv32236/src/Spring/Spring.Aop/Aop/Framework/AutoProxy
Modified Files:
AbstractAutoProxyCreator.cs
Log Message:
fix for SPRNET-847, SPRNET-846
Index: AbstractAutoProxyCreator.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Aop/Framework/AutoProxy/AbstractAutoProxyCreator.cs,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** AbstractAutoProxyCreator.cs 8 Oct 2007 22:04:51 -0000 1.13
--- AbstractAutoProxyCreator.cs 14 Jan 2008 20:49:47 -0000 1.14
***************
*** 450,455 ****
protected virtual object CreateProxy(Type objectType, string objectName, object[] specificInterceptors, ITargetSource targetSource)
{
!
! ProxyFactory proxyFactory = new ProxyFactory();
// copy our properties (proxyTargetClass) inherited from ProxyConfig
proxyFactory.CopyFrom(this);
--- 450,454 ----
protected virtual object CreateProxy(Type objectType, string objectName, object[] specificInterceptors, ITargetSource targetSource)
{
! ProxyFactory proxyFactory = CreateProxyFactory();
// copy our properties (proxyTargetClass) inherited from ProxyConfig
proxyFactory.CopyFrom(this);
***************
*** 491,494 ****
--- 490,502 ----
/// <summary>
+ /// Obtain a new proxy factory instance to be used for proxying a particular object
+ /// </summary>
+ /// <returns>A proxy factory instance for proxying a particular object</returns>
+ protected virtual ProxyFactory CreateProxyFactory()
+ {
+ return new ProxyFactory();
+ }
+
+ /// <summary>
/// Determines the advisors for the given object, including the specific interceptors
/// as well as the common interceptor, all adapted to the Advisor interface.
|