springnet-commits Mailing List for Spring Framework .NET (Page 11)
Brought to you by:
aseovic,
markpollack
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(33) |
Aug
(163) |
Sep
(491) |
Oct
(289) |
Nov
(336) |
Dec
(84) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(227) |
Feb
(413) |
Mar
(128) |
Apr
(232) |
May
(92) |
Jun
(299) |
Jul
(386) |
Aug
(228) |
Sep
(237) |
Oct
(426) |
Nov
(325) |
Dec
(405) |
2006 |
Jan
(315) |
Feb
(311) |
Mar
(152) |
Apr
(177) |
May
(443) |
Jun
(92) |
Jul
(88) |
Aug
(80) |
Sep
(288) |
Oct
(515) |
Nov
(1049) |
Dec
(440) |
2007 |
Jan
(179) |
Feb
(406) |
Mar
(294) |
Apr
(80) |
May
(432) |
Jun
(242) |
Jul
(452) |
Aug
(710) |
Sep
(206) |
Oct
(240) |
Nov
(65) |
Dec
(227) |
2008 |
Jan
(80) |
Feb
(90) |
Mar
(98) |
Apr
(136) |
May
(101) |
Jun
(12) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mark P. <mar...@us...> - 2008-03-31 20:10:05
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Transaction/Interceptor In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15183 Modified Files: RollbackRuleAttribute.cs Log Message: SPRNET-905 - RollbackRuleAttribute checks for null Type and null or empty string in constructor Index: RollbackRuleAttribute.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Transaction/Interceptor/RollbackRuleAttribute.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** RollbackRuleAttribute.cs 18 May 2006 21:37:51 -0000 1.6 --- RollbackRuleAttribute.cs 31 Mar 2008 20:09:59 -0000 1.7 *************** *** 21,24 **** --- 21,25 ---- using System; using Spring.Aop.Framework; + using Spring.Util; namespace Spring.Transaction.Interceptor *************** *** 46,50 **** /// </summary> public static RollbackRuleAttribute RollbackOnSystemExceptions ! = new RollbackRuleAttribute(typeof (System.Exception).Name); /// <summary> --- 47,51 ---- /// </summary> public static RollbackRuleAttribute RollbackOnSystemExceptions ! = new RollbackRuleAttribute(typeof (Exception).Name); /// <summary> *************** *** 62,65 **** --- 63,67 ---- public RollbackRuleAttribute( string exceptionName ) { + AssertUtils.ArgumentHasText(exceptionName, "exceptionName"); _exceptionName = exceptionName; } *************** *** 85,88 **** --- 87,91 ---- public RollbackRuleAttribute( Type exceptionType ) { + AssertUtils.ArgumentNotNull(exceptionType, "exceptionType"); if ( ! typeof(Exception).IsAssignableFrom( exceptionType ) ) { |
From: Mark P. <mar...@us...> - 2008-03-31 20:09:49
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Transaction/Interceptor In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15159 Modified Files: RollbackRuleAttributeTests.cs Log Message: SPRNET-905 - RollbackRuleAttribute checks for null Type and null or empty string in constructor Index: RollbackRuleAttributeTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Transaction/Interceptor/RollbackRuleAttributeTests.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RollbackRuleAttributeTests.cs 17 May 2006 17:48:28 -0000 1.3 --- RollbackRuleAttributeTests.cs 31 Mar 2008 20:09:40 -0000 1.4 *************** *** 1,2 **** --- 1,23 ---- + #region License + + /* + * Copyright 2002-2008 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + #endregion + + using System; using System.Data; *************** *** 7,58 **** namespace Spring.Transaction.Interceptor { ! [TestFixture] ! public class RollbackRuleAttributeTests ! { ! [Test] ! public void FoundImmediatelyWithString() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute("System.Exception"); ! Assert.IsTrue(rr.GetDepth(typeof(Exception)) == 0); ! } ! [Test] ! public void FoundImmediatelyWithClass() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute(typeof(Exception)); ! Assert.IsTrue(rr.GetDepth(new Exception()) == 0); ! } ! [Test] ! public void FoundImmediatelyWithType() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute(typeof(Exception)); ! Assert.IsTrue(rr.GetDepth(typeof(Exception)) == 0); ! } ! [Test] ! public void NotFound() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute("System.Data.DataException"); ! Assert.IsTrue(rr.GetDepth(typeof(ApplicationException)) == -1); ! } ! [Test] ! public void Ancestry() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute("System.Exception"); ! Assert.IsTrue(rr.GetDepth(typeof(DataException)) == 2); ! } ! [Test] ! public void AlwaysTrue() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute("System.Exception"); ! Assert.IsTrue(rr.GetDepth(typeof(SystemException)) > 0); ! Assert.IsTrue(rr.GetDepth(typeof(ApplicationException)) > 0); ! Assert.IsTrue(rr.GetDepth(typeof(DataException)) > 0); ! Assert.IsTrue(rr.GetDepth(typeof(TransactionSystemException)) > 0); ! } ! [Test] ! [ExpectedException(typeof(AopConfigException))] ! public void ConstructorArgMustBeAExceptionClass() ! { ! new RollbackRuleAttribute( typeof( StringBuilder ) ); ! } ! } ! } --- 28,101 ---- namespace Spring.Transaction.Interceptor { ! [TestFixture] ! public class RollbackRuleAttributeTests ! { ! [Test] ! public void FoundImmediatelyWithString() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute("System.Exception"); ! Assert.IsTrue(rr.GetDepth(typeof (Exception)) == 0); ! } ! ! [Test] ! public void FoundImmediatelyWithClass() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute(typeof (Exception)); ! Assert.IsTrue(rr.GetDepth(new Exception()) == 0); ! } ! ! [Test] ! public void FoundImmediatelyWithType() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute(typeof (Exception)); ! Assert.IsTrue(rr.GetDepth(typeof (Exception)) == 0); ! } ! ! [Test] ! public void NotFound() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute("System.Data.DataException"); ! Assert.IsTrue(rr.GetDepth(typeof (ApplicationException)) == -1); ! } ! ! [Test] ! public void Ancestry() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute("System.Exception"); ! Assert.IsTrue(rr.GetDepth(typeof (DataException)) == 2); ! } ! ! [Test] ! public void AlwaysTrue() ! { ! RollbackRuleAttribute rr = new RollbackRuleAttribute("System.Exception"); ! Assert.IsTrue(rr.GetDepth(typeof (SystemException)) > 0); ! Assert.IsTrue(rr.GetDepth(typeof (ApplicationException)) > 0); ! Assert.IsTrue(rr.GetDepth(typeof (DataException)) > 0); ! Assert.IsTrue(rr.GetDepth(typeof (TransactionSystemException)) > 0); ! } ! ! [Test] ! [ExpectedException(typeof (AopConfigException))] ! public void ConstructorArgMustBeAExceptionClass() ! { ! new RollbackRuleAttribute(typeof (StringBuilder)); ! } ! ! [Test] ! [ExpectedException(typeof(ArgumentNullException))] ! public void ConstructorArgMustBeAExceptionClassWithNullThrowableType() ! { ! new RollbackRuleAttribute((Type)null); ! } ! ! [Test] ! [ExpectedException(typeof(ArgumentNullException))] ! public void ConstructorArgExceptionStringNameVersionWithNull() ! { ! new RollbackRuleAttribute((String)null); ! } ! ! ! } ! } \ No newline at end of file |
From: Mark P. <mar...@us...> - 2008-03-31 19:49:07
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Context/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7362 Modified Files: XmlApplicationContextTests.cs Log Message: test overloaded ctor for GenericApplicationContext Index: XmlApplicationContextTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Context/Support/XmlApplicationContextTests.cs,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** XmlApplicationContextTests.cs 17 Feb 2008 13:34:52 -0000 1.14 --- XmlApplicationContextTests.cs 31 Mar 2008 19:47:54 -0000 1.15 *************** *** 221,224 **** --- 221,225 ---- IApplicationContext ctx = new XmlApplicationContext("assembly://Spring.Core.Tests/Spring.Context/contextlifecycle.xml"); GenericApplicationContext genericCtx = new GenericApplicationContext(ctx); + genericCtx = new GenericApplicationContext("test", true, ctx); } |
From: Marko L. <la...@us...> - 2008-03-28 09:11:55
|
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/2.0 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7498/2.0 Modified Files: Quartz.dll Quartz.xml Log Message: Upgraded Quartz.NET libraries to version 0.9.1 Index: Quartz.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/2.0/Quartz.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Quartz.xml 1 Dec 2007 20:31:41 -0000 1.4 --- Quartz.xml 28 Mar 2008 09:11:41 -0000 1.5 *************** *** 926,929 **** --- 926,934 ---- </summary> </member> + <member name="M:Quartz.Core.QuartzScheduler.InitializeLifetimeService"> + <summary> + Obtains a lifetime service object to control the lifetime policy for this instance. + </summary> + </member> <member name="P:Quartz.Core.QuartzScheduler.Version"> <summary> *************** *** 2986,2989 **** --- 2991,3003 ---- <param name="msg">The MSG.</param> </member> + <member name="M:Quartz.SchedulerException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.SchedulerException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="M:Quartz.SchedulerException.#ctor(System.String,System.Int32)"> <summary> *************** *** 3079,3082 **** --- 3093,3105 ---- </summary> </member> + <member name="M:Quartz.Impl.AdoJobStore.InvalidConfigurationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.Impl.AdoJobStore.InvalidConfigurationException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="T:Quartz.Impl.AdoJobStore.ConnectionAndTransactionHolder"> <summary> *************** *** 4435,4438 **** --- 4458,4470 ---- </summary> </member> + <member name="M:Quartz.JobPersistenceException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.JobPersistenceException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="M:Quartz.JobPersistenceException.#ctor(System.String,System.Int32)"> <summary> <p> *************** *** 4456,4459 **** --- 4488,4500 ---- </summary> </member> + <member name="M:Quartz.Impl.AdoJobStore.LockException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.Impl.AdoJobStore.LockException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="T:Quartz.Impl.AdoJobStore.NoSuchDelegateException"> <summary> *************** *** 4463,4466 **** --- 4504,4516 ---- <author><a href="mailto:je...@bi...">Jeffrey Wescott</a></author> </member> + <member name="M:Quartz.Impl.AdoJobStore.NoSuchDelegateException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.Impl.AdoJobStore.NoSuchDelegateException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="T:Quartz.Impl.AdoJobStore.PostgreSQLDelegate"> <summary> *************** *** 6008,6013 **** </ul> </summary> ! <param name="rangeStartingCalendar">The range starting calendar.</param> ! <param name="rangeEndingCalendar">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.#ctor(Quartz.ICalendar,System.DateTime,System.DateTime)"> --- 6058,6063 ---- </ul> </summary> ! <param name="rangeStartingCalendarUtc">The range starting calendar.</param> ! <param name="rangeEndingCalendarUtc">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.#ctor(Quartz.ICalendar,System.DateTime,System.DateTime)"> *************** *** 6028,6037 **** are used, it is possible for two Calendars to represent a valid time range and ! <c>rangeStartingCalendar.after(rangeEndingCalendar) == true</c>)</i> </li> </ul> </summary> ! <param name="rangeStartingCalendar">The range starting calendar.</param> ! <param name="rangeEndingCalendar">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.#ctor(System.Int64,System.Int64)"> --- 6078,6087 ---- are used, it is possible for two Calendars to represent a valid time range and ! <c>rangeStartingCalendarUtc > rangeEndingCalendarUtc == true</c>)</i> </li> </ul> </summary> ! <param name="rangeStartingCalendarUtc">The range starting calendar.</param> ! <param name="rangeEndingCalendarUtc">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.#ctor(System.Int64,System.Int64)"> *************** *** 6097,6104 **** <seealso cref="M:Quartz.ICalendar.GetNextIncludedTimeUtc(System.DateTime)"/> </member> ! <member name="M:Quartz.Impl.Calendar.DailyCalendar.GetTimeRangeStartingTime(System.DateTime)"> <summary> Returns the start time of the time range of the day ! specified in <param name="time" />. </summary> <returns> --- 6147,6154 ---- <seealso cref="M:Quartz.ICalendar.GetNextIncludedTimeUtc(System.DateTime)"/> </member> ! <member name="M:Quartz.Impl.Calendar.DailyCalendar.GetTimeRangeStartingTimeUtc(System.DateTime)"> <summary> Returns the start time of the time range of the day ! specified in <param name="timeUtc" />. </summary> <returns> *************** *** 6107,6114 **** </returns> </member> ! <member name="M:Quartz.Impl.Calendar.DailyCalendar.GetTimeRangeEndingTime(System.DateTime)"> <summary> Returns the end time of the time range of the day ! specified in <param name="time" /> </summary> <returns> --- 6157,6164 ---- </returns> </member> ! <member name="M:Quartz.Impl.Calendar.DailyCalendar.GetTimeRangeEndingTimeUtc(System.DateTime)"> <summary> Returns the end time of the time range of the day ! specified in <param name="timeUtc" /> </summary> <returns> *************** *** 6152,6157 **** represented in the specified <see cref="T:System.DateTime"/>s. </summary> ! <param name="rangeStartingCalendar">The range starting calendar.</param> ! <param name="rangeEndingCalendar">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.SetTimeRange(System.Int64,System.Int64)"> --- 6202,6207 ---- represented in the specified <see cref="T:System.DateTime"/>s. </summary> ! <param name="rangeStartingCalendarUtc">The range starting calendar.</param> ! <param name="rangeEndingCalendarUtc">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.SetTimeRange(System.Int64,System.Int64)"> *************** *** 10787,10790 **** --- 10837,10870 ---- <param name="scheduler"></param> </member> + <member name="M:Quartz.Simpl.RemotingSchedulerExporter.RegisterRemotingChannelIfNeeded"> + <summary> + Registers remoting channel if needed. This is determined + by checking whether there is a positive value for port. + </summary> + </member> + <member name="P:Quartz.Simpl.RemotingSchedulerExporter.Port"> + <summary> + Gets or sets the port used for remoting. + </summary> + </member> + <member name="P:Quartz.Simpl.RemotingSchedulerExporter.BindName"> + <summary> + Gets or sets the name to use when exporting + scheduler to remoting context. + </summary> + </member> + <member name="P:Quartz.Simpl.RemotingSchedulerExporter.ChannelType"> + <summary> + Sets the channel type when registering remoting. + + </summary> + </member> + <member name="P:Quartz.Simpl.RemotingSchedulerExporter.TypeFilterLevel"> + <summary> + Sets the <see cref="P:Quartz.Simpl.RemotingSchedulerExporter.TypeFilterLevel"/> used when + exporting to remoting context. Defaults to + <see cref="F:System.Runtime.Serialization.Formatters.TypeFilterLevel.Full"/>. + </summary> + </member> <member name="T:Quartz.Simpl.SimpleClassLoadHelper"> <summary> *************** *** 12459,12462 **** --- 12539,12551 ---- </summary> </member> + <member name="M:Quartz.CriticalSchedulerException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.CriticalSchedulerException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="T:Quartz.CronExpression"> <summary> *************** *** 14701,14704 **** --- 14790,14802 ---- </summary> </member> + <member name="M:Quartz.JobExecutionException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.JobExecutionException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="M:Quartz.JobExecutionException.ToString"> <summary> *************** *** 15337,15340 **** --- 15435,15447 ---- </summary> </member> + <member name="M:Quartz.ObjectAlreadyExistsException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.ObjectAlreadyExistsException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="M:Quartz.ObjectAlreadyExistsException.#ctor(Quartz.JobDetail)"> <summary> <p> *************** *** 15380,15383 **** --- 15487,15499 ---- </summary> </member> + <member name="M:Quartz.SchedulerConfigException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.SchedulerConfigException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="T:Quartz.SchedulerContext"> <summary> *************** *** 16481,16484 **** --- 16597,16609 ---- </summary> </member> + <member name="M:Quartz.UnableToInterruptJobException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.UnableToInterruptJobException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> </members> </doc> Index: Quartz.dll =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/2.0/Quartz.dll,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 Binary files /tmp/cvsA3jJ9A and /tmp/cvsPxK5IB differ |
From: Marko L. <la...@us...> - 2008-03-28 09:11:45
|
Update of /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/1.1 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7498/1.1 Modified Files: Quartz.dll Quartz.xml Log Message: Upgraded Quartz.NET libraries to version 0.9.1 Index: Quartz.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/1.1/Quartz.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Quartz.xml 1 Dec 2007 20:31:41 -0000 1.4 --- Quartz.xml 28 Mar 2008 09:11:38 -0000 1.5 *************** *** 926,929 **** --- 926,934 ---- </summary> </member> + <member name="M:Quartz.Core.QuartzScheduler.InitializeLifetimeService"> + <summary> + Obtains a lifetime service object to control the lifetime policy for this instance. + </summary> + </member> <member name="P:Quartz.Core.QuartzScheduler.Version"> <summary> *************** *** 2986,2989 **** --- 2991,3003 ---- <param name="msg">The MSG.</param> </member> + <member name="M:Quartz.SchedulerException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.SchedulerException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="M:Quartz.SchedulerException.#ctor(System.String,System.Int32)"> <summary> *************** *** 3079,3082 **** --- 3093,3105 ---- </summary> </member> + <member name="M:Quartz.Impl.AdoJobStore.InvalidConfigurationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.Impl.AdoJobStore.InvalidConfigurationException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="T:Quartz.Impl.AdoJobStore.ConnectionAndTransactionHolder"> <summary> *************** *** 4435,4438 **** --- 4458,4470 ---- </summary> </member> + <member name="M:Quartz.JobPersistenceException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.JobPersistenceException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="M:Quartz.JobPersistenceException.#ctor(System.String,System.Int32)"> <summary> <p> *************** *** 4456,4459 **** --- 4488,4500 ---- </summary> </member> + <member name="M:Quartz.Impl.AdoJobStore.LockException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.Impl.AdoJobStore.LockException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="T:Quartz.Impl.AdoJobStore.NoSuchDelegateException"> <summary> *************** *** 4463,4466 **** --- 4504,4516 ---- <author><a href="mailto:je...@bi...">Jeffrey Wescott</a></author> </member> + <member name="M:Quartz.Impl.AdoJobStore.NoSuchDelegateException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.Impl.AdoJobStore.NoSuchDelegateException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="T:Quartz.Impl.AdoJobStore.PostgreSQLDelegate"> <summary> *************** *** 6008,6013 **** </ul> </summary> ! <param name="rangeStartingCalendar">The range starting calendar.</param> ! <param name="rangeEndingCalendar">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.#ctor(Quartz.ICalendar,System.DateTime,System.DateTime)"> --- 6058,6063 ---- </ul> </summary> ! <param name="rangeStartingCalendarUtc">The range starting calendar.</param> ! <param name="rangeEndingCalendarUtc">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.#ctor(Quartz.ICalendar,System.DateTime,System.DateTime)"> *************** *** 6028,6037 **** are used, it is possible for two Calendars to represent a valid time range and ! <c>rangeStartingCalendar.after(rangeEndingCalendar) == true</c>)</i> </li> </ul> </summary> ! <param name="rangeStartingCalendar">The range starting calendar.</param> ! <param name="rangeEndingCalendar">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.#ctor(System.Int64,System.Int64)"> --- 6078,6087 ---- are used, it is possible for two Calendars to represent a valid time range and ! <c>rangeStartingCalendarUtc > rangeEndingCalendarUtc == true</c>)</i> </li> </ul> </summary> ! <param name="rangeStartingCalendarUtc">The range starting calendar.</param> ! <param name="rangeEndingCalendarUtc">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.#ctor(System.Int64,System.Int64)"> *************** *** 6097,6104 **** <seealso cref="M:Quartz.ICalendar.GetNextIncludedTimeUtc(System.DateTime)"/> </member> ! <member name="M:Quartz.Impl.Calendar.DailyCalendar.GetTimeRangeStartingTime(System.DateTime)"> <summary> Returns the start time of the time range of the day ! specified in <param name="time" />. </summary> <returns> --- 6147,6154 ---- <seealso cref="M:Quartz.ICalendar.GetNextIncludedTimeUtc(System.DateTime)"/> </member> ! <member name="M:Quartz.Impl.Calendar.DailyCalendar.GetTimeRangeStartingTimeUtc(System.DateTime)"> <summary> Returns the start time of the time range of the day ! specified in <param name="timeUtc" />. </summary> <returns> *************** *** 6107,6114 **** </returns> </member> ! <member name="M:Quartz.Impl.Calendar.DailyCalendar.GetTimeRangeEndingTime(System.DateTime)"> <summary> Returns the end time of the time range of the day ! specified in <param name="time" /> </summary> <returns> --- 6157,6164 ---- </returns> </member> ! <member name="M:Quartz.Impl.Calendar.DailyCalendar.GetTimeRangeEndingTimeUtc(System.DateTime)"> <summary> Returns the end time of the time range of the day ! specified in <param name="timeUtc" /> </summary> <returns> *************** *** 6152,6157 **** represented in the specified <see cref="T:System.DateTime"/>s. </summary> ! <param name="rangeStartingCalendar">The range starting calendar.</param> ! <param name="rangeEndingCalendar">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.SetTimeRange(System.Int64,System.Int64)"> --- 6202,6207 ---- represented in the specified <see cref="T:System.DateTime"/>s. </summary> ! <param name="rangeStartingCalendarUtc">The range starting calendar.</param> ! <param name="rangeEndingCalendarUtc">The range ending calendar.</param> </member> <member name="M:Quartz.Impl.Calendar.DailyCalendar.SetTimeRange(System.Int64,System.Int64)"> *************** *** 10787,10790 **** --- 10837,10870 ---- <param name="scheduler"></param> </member> + <member name="M:Quartz.Simpl.RemotingSchedulerExporter.RegisterRemotingChannelIfNeeded"> + <summary> + Registers remoting channel if needed. This is determined + by checking whether there is a positive value for port. + </summary> + </member> + <member name="P:Quartz.Simpl.RemotingSchedulerExporter.Port"> + <summary> + Gets or sets the port used for remoting. + </summary> + </member> + <member name="P:Quartz.Simpl.RemotingSchedulerExporter.BindName"> + <summary> + Gets or sets the name to use when exporting + scheduler to remoting context. + </summary> + </member> + <member name="P:Quartz.Simpl.RemotingSchedulerExporter.ChannelType"> + <summary> + Sets the channel type when registering remoting. + + </summary> + </member> + <member name="P:Quartz.Simpl.RemotingSchedulerExporter.TypeFilterLevel"> + <summary> + Sets the <see cref="P:Quartz.Simpl.RemotingSchedulerExporter.TypeFilterLevel"/> used when + exporting to remoting context. Defaults to + <see cref="F:System.Runtime.Serialization.Formatters.TypeFilterLevel.Full"/>. + </summary> + </member> <member name="T:Quartz.Simpl.SimpleClassLoadHelper"> <summary> *************** *** 12459,12462 **** --- 12539,12551 ---- </summary> </member> + <member name="M:Quartz.CriticalSchedulerException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.CriticalSchedulerException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="T:Quartz.CronExpression"> <summary> *************** *** 14701,14704 **** --- 14790,14802 ---- </summary> </member> + <member name="M:Quartz.JobExecutionException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.JobExecutionException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="M:Quartz.JobExecutionException.ToString"> <summary> *************** *** 15337,15340 **** --- 15435,15447 ---- </summary> </member> + <member name="M:Quartz.ObjectAlreadyExistsException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.ObjectAlreadyExistsException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="M:Quartz.ObjectAlreadyExistsException.#ctor(Quartz.JobDetail)"> <summary> <p> *************** *** 15380,15383 **** --- 15487,15499 ---- </summary> </member> + <member name="M:Quartz.SchedulerConfigException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.SchedulerConfigException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> <member name="T:Quartz.SchedulerContext"> <summary> *************** *** 16481,16484 **** --- 16597,16609 ---- </summary> </member> + <member name="M:Quartz.UnableToInterruptJobException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> + <summary> + Initializes a new instance of the <see cref="T:Quartz.UnableToInterruptJobException"/> class. + </summary> + <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"></see> that holds the serialized object data about the exception being thrown.</param> + <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"></see> that contains contextual information about the source or destination.</param> + <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"></see> is zero (0). </exception> + <exception cref="T:System.ArgumentNullException">The info parameter is null. </exception> + </member> </members> </doc> Index: Quartz.dll =================================================================== RCS file: /cvsroot/springnet/Spring.Net.Integration/projects/Spring.Scheduling.Quartz/lib/net/1.1/Quartz.dll,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 Binary files /tmp/cvsUMyEgc and /tmp/cvs9faJY9 differ |
From: Bruno B. <bb...@us...> - 2008-03-27 11:11:53
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/Services In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13535 Modified Files: WebServiceExporter.cs Log Message: Try to de-couple the url from the actual object definition name in WebServiceExporter [SPRNET-762] Apply Erich's fix to the ScriptHandlerFactory (Spring.Web.Extensions) Index: WebServiceExporter.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** WebServiceExporter.cs 24 Feb 2008 19:10:52 -0000 1.31 --- WebServiceExporter.cs 27 Mar 2008 11:11:49 -0000 1.32 *************** *** 342,346 **** { IProxyTypeBuilder builder = new WebServiceProxyTypeBuilder(TargetName, Description, Name, Namespace); ! builder.Name = objectName; builder.BaseType = WebServiceBaseType; builder.TargetType = objectFactory.GetType(TargetName); --- 342,346 ---- { IProxyTypeBuilder builder = new WebServiceProxyTypeBuilder(TargetName, Description, Name, Namespace); ! builder.Name = WebUtils.GetPageName(objectName); builder.BaseType = WebServiceBaseType; builder.TargetType = objectFactory.GetType(TargetName); |
From: Bruno B. <bb...@us...> - 2008-03-27 11:11:40
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web.Extensions/Web/Script/Services In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13508 Modified Files: ScriptHandlerFactory.cs Log Message: Try to de-couple the url from the actual object definition name in WebServiceExporter [SPRNET-762] Apply Erich's fix to the ScriptHandlerFactory (Spring.Web.Extensions) Index: ScriptHandlerFactory.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web.Extensions/Web/Script/Services/ScriptHandlerFactory.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ScriptHandlerFactory.cs 31 May 2007 18:34:55 -0000 1.1 --- ScriptHandlerFactory.cs 27 Mar 2008 11:11:22 -0000 1.2 *************** *** 30,33 **** --- 30,34 ---- using Spring.Util; using Spring.Web.Services; + using Spring.Web.Support; #endregion *************** *** 42,46 **** /// <author>Thomas Broyer</author> /// <version>$Id$</version> ! public class ScriptHandlerFactory : IHttpHandlerFactory { private static readonly Type scriptHandlerFactoryType = --- 43,47 ---- /// <author>Thomas Broyer</author> /// <version>$Id$</version> ! public class ScriptHandlerFactory : AbstractHandlerFactory, IHttpHandlerFactory { private static readonly Type scriptHandlerFactoryType = *************** *** 74,79 **** } - #region IHttpHandlerFactory Members - /// <summary> /// Retrieves an instance of the <see cref="System.Web.IHttpHandler"/> --- 75,78 ---- *************** *** 86,90 **** /// <param name="pathTranslated">The physical application path for the web service.</param> /// <returns>The web service handler object.</returns> ! public IHttpHandler GetHandler(HttpContext context, string requestType, string url, string pathTranslated) { string filename = VirtualPathUtility.ToAbsolute(context.Request.FilePath); --- 85,89 ---- /// <param name="pathTranslated">The physical application path for the web service.</param> /// <returns>The web service handler object.</returns> ! public override IHttpHandler GetHandler(HttpContext context, string requestType, string url, string pathTranslated) { string filename = VirtualPathUtility.ToAbsolute(context.Request.FilePath); *************** *** 94,102 **** if (webServiceData == null) { ! string serviceName = WebUtils.GetPageName(url); ! IApplicationContext appContext = WebApplicationContext.Current; ! if (appContext.ContainsObjectDefinition(serviceName)) { ! Type serviceType = appContext.GetType(serviceName); object[] attrs = serviceType.GetCustomAttributes(typeof(ScriptServiceAttribute), false); if (attrs.Length > 0) --- 93,111 ---- if (webServiceData == null) { ! IConfigurableApplicationContext appContext = ! WebApplicationContext.GetContext(url) as IConfigurableApplicationContext; ! ! if (appContext == null) { ! throw new InvalidOperationException( ! "Implementations of IApplicationContext must also implement IConfigurableApplicationContext"); ! } ! ! string appRelativeVirtualPath = WebUtils.GetAppRelativePath(url); ! NamedObjectDefinition nod = FindWebObjectDefinition(appRelativeVirtualPath, appContext.ObjectFactory); ! ! if (nod != null) ! { ! Type serviceType = appContext.GetType(nod.Name); object[] attrs = serviceType.GetCustomAttributes(typeof(ScriptServiceAttribute), false); if (attrs.Length > 0) *************** *** 115,124 **** /// </summary> /// <param name="handler">The <see cref="System.Web.IHttpHandler" /> object to reuse.</param> ! public void ReleaseHandler(IHttpHandler handler) { this.scriptHandlerFactory.ReleaseHandler(handler); } - - #endregion } } \ No newline at end of file --- 124,131 ---- /// </summary> /// <param name="handler">The <see cref="System.Web.IHttpHandler" /> object to reuse.</param> ! public override void ReleaseHandler(IHttpHandler handler) { this.scriptHandlerFactory.ReleaseHandler(handler); } } } \ No newline at end of file |
From: Erich E. <oak...@us...> - 2008-03-26 23:29:55
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv4775/src/Spring/Spring.Web/Web/Support Modified Files: PageHandlerFactory.cs Log Message: fixed SPRNET-899 Index: PageHandlerFactory.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/Support/PageHandlerFactory.cs,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** PageHandlerFactory.cs 21 Mar 2008 14:12:29 -0000 1.36 --- PageHandlerFactory.cs 26 Mar 2008 23:29:43 -0000 1.37 *************** *** 19,22 **** --- 19,24 ---- #endregion + #region Imports + using System; using System.Collections; *************** *** 35,38 **** --- 37,42 ---- using Spring.Web.Process; + #endregion + namespace Spring.Web.Support { *************** *** 67,71 **** private readonly ILog Log = LogManager.GetLogger(typeof(PageHandlerFactory)); ! private IDictionary handlers = CollectionsUtil.CreateCaseInsensitiveHashtable(); /// <summary> --- 71,75 ---- private readonly ILog Log = LogManager.GetLogger(typeof(PageHandlerFactory)); ! private readonly IDictionary pageHandlerWrappers = CollectionsUtil.CreateCaseInsensitiveHashtable(); /// <summary> *************** *** 87,151 **** if (isDebug) Log.Debug(string.Format("GetHandler():resolving url '{0}'", url)); ! IHttpHandler handler; ! ! lock (handlers.SyncRoot) ! { ! handler = (IHttpHandler)handlers[url]; ! if (handler != null) ! { ! if (isDebug) ! Log.Debug(string.Format("GetHandler():resolved url '{0}' from reusable handler cache", url)); ! return handler; ! } ! } ! ! ! IConfigurableApplicationContext appContext = ! WebApplicationContext.GetContext(url) as IConfigurableApplicationContext; ! if (appContext == null) { ! throw new InvalidOperationException( ! "Implementations of IApplicationContext must also implement IConfigurableApplicationContext"); } ! string appRelativeVirtualPath = WebUtils.GetAppRelativePath(url); ! NamedObjectDefinition namedPageDefinition = FindWebObjectDefinition(appRelativeVirtualPath, appContext.ObjectFactory); ! ! if (namedPageDefinition != null) { ! Type pageType = namedPageDefinition.ObjectDefinition.ObjectType; ! if (typeof(IRequiresSessionState).IsAssignableFrom(pageType)) ! { ! handler = new SessionAwarePageHandler(appContext, namedPageDefinition.Name, url, null); ! } ! else { ! handler = new PageHandler(appContext, namedPageDefinition.Name, url, null); } } else { ! Type pageType = null; ! pageType = WebObjectUtils.GetCompiledPageType(url); ! if (typeof(IRequiresSessionState).IsAssignableFrom(pageType)) { ! handler = new SessionAwarePageHandler(appContext, appRelativeVirtualPath, url, physicalPath); } else { ! handler = new PageHandler(appContext, appRelativeVirtualPath, url, physicalPath); } - } ! if (handler.IsReusable) ! { ! lock (handlers.SyncRoot) { ! handlers[url] = handler; } } return handler; } --- 91,139 ---- if (isDebug) Log.Debug(string.Format("GetHandler():resolving url '{0}'", url)); ! PageHandlerWrapper pageHandlerWrapper; ! lock (pageHandlerWrappers.SyncRoot) { ! pageHandlerWrapper = (PageHandlerWrapper)pageHandlerWrappers[url]; } ! if (pageHandlerWrapper != null) { ! if (isDebug) { ! Log.Debug(string.Format("GetHandler():resolved url '{0}' from reusable handler cache", url)); } } else { ! IConfigurableApplicationContext appContext = ! WebApplicationContext.GetContext(url) as IConfigurableApplicationContext; ! if (appContext == null) { ! throw new InvalidOperationException( ! "Implementations of IApplicationContext must also implement IConfigurableApplicationContext"); ! } ! ! string appRelativeVirtualPath = WebUtils.GetAppRelativePath(url); ! NamedObjectDefinition namedPageDefinition = FindWebObjectDefinition(appRelativeVirtualPath, appContext.ObjectFactory); ! ! if (namedPageDefinition != null) ! { ! pageHandlerWrapper = new PageHandlerWrapper(appContext, namedPageDefinition.Name, url, null); } else { ! pageHandlerWrapper = new PageHandlerWrapper(appContext, appRelativeVirtualPath, url, physicalPath); } ! lock (pageHandlerWrappers.SyncRoot) { ! pageHandlerWrappers[url] = pageHandlerWrapper; } } + IHttpHandler handler; + handler = pageHandlerWrapper.GetHandler(context); return handler; } *************** *** 161,165 **** /// override non-virtual methods from the base Page class. /// </remarks> ! internal class PageHandler : System.Web.UI.Page, IHttpHandler { private readonly IApplicationContext appContext; --- 149,153 ---- /// override non-virtual methods from the base Page class. /// </remarks> ! internal class PageHandlerWrapper { private readonly IApplicationContext appContext; *************** *** 179,183 **** /// <summary> ! /// Initializes a new instance of the <see cref="PageHandler"/> class. /// </summary> /// <param name="appContext">Application context instance to retrieve page from.</param> --- 167,171 ---- /// <summary> ! /// Initializes a new instance of the <see cref="PageHandlerWrapper"/> class. /// </summary> /// <param name="appContext">Application context instance to retrieve page from.</param> *************** *** 185,189 **** /// <param name="url">Requested page URL.</param> /// <param name="path">Translated server path for the page.</param> ! public PageHandler(IApplicationContext appContext, string pageName, string url, string path) { this.appContext = appContext; --- 173,177 ---- /// <param name="url">Requested page URL.</param> /// <param name="path">Translated server path for the page.</param> ! public PageHandlerWrapper(IApplicationContext appContext, string pageName, string url, string path) { this.appContext = appContext; *************** *** 194,202 **** /// <summary> ! /// Initializes a new instance of the <see cref="PageHandler"/> class. /// </summary> /// <param name="appContext">Application context instance to retrieve page from.</param> /// <param name="pageName">Name of the page object to execute.</param> ! public PageHandler(IApplicationContext appContext, string pageName) : this(appContext, pageName, null, null) { --- 182,190 ---- /// <summary> ! /// Initializes a new instance of the <see cref="PageHandlerWrapper"/> class. /// </summary> /// <param name="appContext">Application context instance to retrieve page from.</param> /// <param name="pageName">Name of the page object to execute.</param> ! public PageHandlerWrapper(IApplicationContext appContext, string pageName) : this(appContext, pageName, null, null) { *************** *** 228,238 **** #endregion ! #region IHttpHandler Members ! ! /// <summary> ! /// Creates instance of the page and delegates call to it. ! /// </summary> ! /// <param name="context">HttpContext of the current page request.</param> ! void IHttpHandler.ProcessRequest(HttpContext context) { IHttpHandler handler = cachedHandler; --- 216,220 ---- #endregion ! public IHttpHandler GetHandler(HttpContext context) { IHttpHandler handler = cachedHandler; *************** *** 255,274 **** ApplySharedState(handler); ApplyDependencyInjection(handler); ! ! context.Handler = handler; ! handler.ProcessRequest(context); ! } ! ! /// <summary> ! /// Returns true because this wrapper handler can be reused. ! /// Actual page is instantiated at the beginning of the ProcessRequest method. ! /// </summary> ! bool IHttpHandler.IsReusable ! { ! get { return true; } } - #endregion - /// <summary> /// Creates a page instance corresponding to this handler's url. --- 237,243 ---- ApplySharedState(handler); ApplyDependencyInjection(handler); ! return handler; } /// <summary> /// Creates a page instance corresponding to this handler's url. *************** *** 358,393 **** } } - } ! /// <summary> ! /// Wrapper for handlers that require <see cref="HttpSessionState"/>. ! /// </summary> ! /// <remarks> ! /// Delays page object instantiation until ProcessRequest is called ! /// in order to be able to access session state. ! /// </remarks> ! internal class SessionAwarePageHandler : PageHandler, IRequiresSessionState ! { ! /// <summary> ! /// Initializes a new instance of the <see cref="SessionAwarePageHandler"/> class. ! /// </summary> ! /// <param name="appContext">Application context instance to retrieve page from.</param> ! /// <param name="pageName">Name of the page object to execute.</param> ! /// <param name="url">Requested page URL.</param> ! /// <param name="path">Translated server path for the page.</param> ! public SessionAwarePageHandler(IApplicationContext appContext, string pageName, string url, string path) ! : base(appContext, pageName, url, path) ! { ! } /// <summary> ! /// Initializes a new instance of the <see cref="SessionAwarePageHandler"/> class. /// </summary> ! /// <param name="appContext">Application context instance to retrieve page from.</param> ! /// <param name="pageName">Name of the page object to execute.</param> ! public SessionAwarePageHandler(IApplicationContext appContext, string pageName) ! : base(appContext, pageName) { } ! } } \ No newline at end of file --- 327,390 ---- } } ! /* ! #region IHttpHandler Members ! ! /// <summary> ! /// Creates instance of the page and delegates call to it. ! /// </summary> ! /// <param name="context">HttpContext of the current page request.</param> ! void IHttpHandler.ProcessRequest(HttpContext context) ! { ! IHttpHandler handler = GetHandler(context); ! ! context.Handler = handler; ! handler.ProcessRequest(context); ! } ! ! /// <summary> ! /// Returns true because this wrapper handler can be reused. ! /// Actual page is instantiated at the beginning of the ProcessRequest method. ! /// </summary> ! bool IHttpHandler.IsReusable ! { ! get { return true; } ! } + #endregion + */ + } + /* /// <summary> ! /// Wrapper for handlers that require <see cref="HttpSessionState"/>. /// </summary> ! /// <remarks> ! /// Delays page object instantiation until ProcessRequest is called ! /// in order to be able to access session state. ! /// </remarks> ! internal class SessionAwarePageHandler : PageHandler, IRequiresSessionState { + /// <summary> + /// Initializes a new instance of the <see cref="SessionAwarePageHandler"/> class. + /// </summary> + /// <param name="appContext">Application context instance to retrieve page from.</param> + /// <param name="pageName">Name of the page object to execute.</param> + /// <param name="url">Requested page URL.</param> + /// <param name="path">Translated server path for the page.</param> + public SessionAwarePageHandler(IApplicationContext appContext, string pageName, string url, string path) + : base(appContext, pageName, url, path) + { + } + + /// <summary> + /// Initializes a new instance of the <see cref="SessionAwarePageHandler"/> class. + /// </summary> + /// <param name="appContext">Application context instance to retrieve page from.</param> + /// <param name="pageName">Name of the page object to execute.</param> + public SessionAwarePageHandler(IApplicationContext appContext, string pageName) + : base(appContext, pageName) + { + } } ! */ } \ No newline at end of file |
From: Erich E. <oak...@us...> - 2008-03-26 23:29:55
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv4775/src/Spring/Spring.Web Modified Files: Spring.Web.2005.csproj Log Message: fixed SPRNET-899 Index: Spring.Web.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Spring.Web.2005.csproj,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** Spring.Web.2005.csproj 19 Mar 2008 12:07:14 -0000 1.39 --- Spring.Web.2005.csproj 26 Mar 2008 23:29:43 -0000 1.40 *************** *** 195,199 **** <Compile Include="Web\Support\ISupportsWebDependencyInjection.cs" /> <Compile Include="Web\Support\PageHandlerFactory.cs"> - <SubType>ASPXCodeBehind</SubType> </Compile> <Compile Include="Web\Support\Result.cs"> --- 195,198 ---- |
From: Erich E. <oak...@us...> - 2008-03-25 22:33:09
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24861/src/Spring/Spring.Core Modified Files: Spring.Core.2005.csproj Log Message: SPRNET-901 Index: Spring.Core.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Spring.Core.2005.csproj,v retrieving revision 1.119 retrieving revision 1.120 diff -C2 -d -r1.119 -r1.120 *** Spring.Core.2005.csproj 20 Mar 2008 23:58:16 -0000 1.119 --- Spring.Core.2005.csproj 25 Mar 2008 22:33:04 -0000 1.120 *************** *** 1054,1058 **** <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <PropertyGroup> ! <PreBuildEvent>rem $(ProjectDir)\..\..\..\tools\antlr-2.7.6\antlr-2.7.6.exe -o $(ProjectDir)\Expressions\Parser $(ProjectDir)\Expressions\Expression.g </PreBuildEvent> <PostBuildEvent> --- 1054,1058 ---- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <PropertyGroup> ! <PreBuildEvent>$(ProjectDir)\..\..\..\tools\antlr-2.7.6\antlr-2.7.6.exe -o $(ProjectDir)\Expressions\Parser $(ProjectDir)\Expressions\Expression.g </PreBuildEvent> <PostBuildEvent> |
From: Erich E. <oak...@us...> - 2008-03-25 22:33:07
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Expressions In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24861/test/Spring/Spring.Core.Tests/Expressions Added Files: SelectionNodeTests.cs Log Message: SPRNET-901 --- NEW FILE: SelectionNodeTests.cs --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2008-03-25 22:33:07
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24861/test/Spring/Spring.Core.Tests Modified Files: Spring.Core.Tests.2005.csproj Log Message: SPRNET-901 Index: Spring.Core.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Spring.Core.Tests.2005.csproj,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -d -r1.78 -r1.79 *** Spring.Core.Tests.2005.csproj 21 Mar 2008 10:49:38 -0000 1.78 --- Spring.Core.Tests.2005.csproj 25 Mar 2008 22:33:04 -0000 1.79 *************** *** 278,281 **** --- 278,282 ---- <Compile Include="Expressions\Processors\OrderByProcessorTests.cs" /> <Compile Include="Expressions\ReferenceNodeTests.cs" /> + <Compile Include="Expressions\SelectionNodeTests.cs" /> <Compile Include="Globalization\AbstractLocalizerTests.cs"> <SubType>Code</SubType> |
From: Erich E. <oak...@us...> - 2008-03-25 22:33:07
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Expressions In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24861/src/Spring/Spring.Core/Expressions Modified Files: Expression.g SelectionNode.cs Log Message: SPRNET-901 Index: SelectionNode.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Expressions/SelectionNode.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** SelectionNode.cs 7 Sep 2007 03:01:26 -0000 1.5 --- SelectionNode.cs 25 Mar 2008 22:33:04 -0000 1.6 *************** *** 36,40 **** /// Create a new instance /// </summary> ! public SelectionNode():base() { } --- 36,41 ---- /// Create a new instance /// </summary> ! public SelectionNode() ! : base() { } *************** *** 47,51 **** { } ! /// <summary> /// Returns a <see cref="IList"/> containing results of evaluation --- 48,52 ---- { } ! /// <summary> /// Returns a <see cref="IList"/> containing results of evaluation *************** *** 64,78 **** } ! BaseNode expression = (BaseNode) this.getFirstChild(); IList selectionList = new ArrayList(); using (evalContext.SwitchThisContext()) { foreach (object o in enumerable) { evalContext.ThisContext = o; ! bool isMatch = (bool) expression.GetValueInternal(o, evalContext); if (isMatch) { ! selectionList.Add(o); } } --- 65,100 ---- } ! BaseNode expression = (BaseNode)this.getFirstChild(); ! BaseNode minIndexExpression = (BaseNode)expression.getNextSibling(); ! BaseNode maxIndexExpression = (minIndexExpression == null) ? null : (BaseNode)minIndexExpression.getNextSibling(); ! ! int minIndex = (int)((minIndexExpression == null) ! ? Int32.MinValue ! : minIndexExpression.GetValueInternal(context, evalContext)); ! int maxIndex = (int)((maxIndexExpression == null) ! ? Int32.MaxValue ! : maxIndexExpression.GetValueInternal(context, evalContext)); ! IList selectionList = new ArrayList(); + using (evalContext.SwitchThisContext()) { + int found = 0; foreach (object o in enumerable) { evalContext.ThisContext = o; ! bool isMatch = (bool)expression.GetValueInternal(o, evalContext); if (isMatch) { ! if (minIndex <= found && found <= maxIndex) ! { ! selectionList.Add(o); ! } ! found++; ! ! if (found>maxIndex) ! { ! break; // don't look any further ! } } } Index: Expression.g =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Expressions/Expression.g,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** Expression.g 11 Oct 2007 13:55:37 -0000 1.25 --- Expression.g 25 Mar 2008 22:33:04 -0000 1.26 *************** *** 207,211 **** selection : ! SELECT^ <AST = Spring.Expressions.SelectionNode> expression RCURLY! ; --- 207,211 ---- selection : ! SELECT^ <AST = Spring.Expressions.SelectionNode> expression (COMMA! expression)* RCURLY! ; |
From: Mark P. <mar...@us...> - 2008-03-21 14:12:36
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10985 Modified Files: PageHandlerFactory.cs Log Message: misc updates, doc cleanup, code regions. Added getter for DbProvider in LocalSessionFactoryObject Index: PageHandlerFactory.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/Support/PageHandlerFactory.cs,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** PageHandlerFactory.cs 19 Mar 2008 18:05:08 -0000 1.35 --- PageHandlerFactory.cs 21 Mar 2008 14:12:29 -0000 1.36 *************** *** 43,48 **** /// <remarks> /// <para> ! /// This handler factory uses page name from the URL, without the extension, ! /// to find handler object in the Spring context. This means that the target object /// definition doesn't need to resolve to an .aspx page -- it can be any valid /// object that implements <see cref="IHttpHandler"/> interface. --- 43,48 ---- /// <remarks> /// <para> ! /// This handler factory uses the page name from the URL, without the extension, ! /// to find the handler object in the Spring context. This means that the target object /// definition doesn't need to resolve to an .aspx page -- it can be any valid /// object that implements <see cref="IHttpHandler"/> interface. *************** *** 203,206 **** --- 203,208 ---- } + #region Properties + /// <summary> /// Use for sync access to this PageHandler instance. *************** *** 211,214 **** --- 213,231 ---- } + /// <summary> + /// Gets <see cref="IDictionary"/> that contains handler state. + /// </summary> + /// <remarks> + /// This <see cref="IDictionary"/> will be assigned to the <c>SharedState</c> + /// property of <see cref="IHttpHandler"/> instances that implement + /// <see cref="ISharedStateAware"/> interface. + /// </remarks> + public IDictionary HandlerState + { + get { return handlerState; } + } + + #endregion + #region IHttpHandler Members *************** *** 244,247 **** --- 261,275 ---- /// <summary> + /// Returns true because this wrapper handler can be reused. + /// Actual page is instantiated at the beginning of the ProcessRequest method. + /// </summary> + bool IHttpHandler.IsReusable + { + get { return true; } + } + + #endregion + + /// <summary> /// Creates a page instance corresponding to this handler's url. /// </summary> *************** *** 330,357 **** } } - - /// <summary> - /// Returns true because this wrapper handler can be reused. - /// Actual page is instantiated at the beginning of the ProcessRequest method. - /// </summary> - bool IHttpHandler.IsReusable - { - get { return true; } - } - - #endregion - - /// <summary> - /// Gets <see cref="IDictionary"/> that contains handler state. - /// </summary> - /// <remarks> - /// This <see cref="IDictionary"/> will be assigned to the <c>SharedState</c> - /// property of <see cref="IHttpHandler"/> instances that implement - /// <see cref="ISharedStateAware"/> interface. - /// </remarks> - public IDictionary HandlerState - { - get { return handlerState; } - } } --- 358,361 ---- |
From: Mark P. <mar...@us...> - 2008-03-21 14:12:23
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data.NHibernate/Data/NHibernate In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10962 Modified Files: LocalSessionFactoryObject.cs Log Message: misc updates, doc cleanup, code regions. Added getter for DbProvider in LocalSessionFactoryObject Index: LocalSessionFactoryObject.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data.NHibernate/Data/NHibernate/LocalSessionFactoryObject.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** LocalSessionFactoryObject.cs 25 Feb 2008 20:39:17 -0000 1.6 --- LocalSessionFactoryObject.cs 21 Mar 2008 14:12:16 -0000 1.7 *************** *** 166,170 **** /// <summary> ! /// Set the DataSource to be used by the SessionFactory. /// </summary> /// <value>The db provider.</value> --- 166,170 ---- /// <summary> ! /// Get or set the DataSource to be used by the SessionFactory. /// </summary> /// <value>The db provider.</value> *************** *** 179,182 **** --- 179,183 ---- { set { dbProvider = value; } + get { return dbProvider; } } |
From: Mark P. <mar...@us...> - 2008-03-21 14:12:11
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data.NHibernate12/Data/NHibernate In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10917/Data/NHibernate Modified Files: LocalSessionFactoryObject.cs Log Message: misc updates, doc cleanup, code regions. Added getter for DbProvider in LocalSessionFactoryObject Index: LocalSessionFactoryObject.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data.NHibernate12/Data/NHibernate/LocalSessionFactoryObject.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** LocalSessionFactoryObject.cs 25 Feb 2008 20:39:12 -0000 1.10 --- LocalSessionFactoryObject.cs 21 Mar 2008 14:12:08 -0000 1.11 *************** *** 170,174 **** /// <summary> ! /// Set the DataSource to be used by the SessionFactory. /// </summary> /// <value>The db provider.</value> --- 170,174 ---- /// <summary> ! /// Get or set the DataSource to be used by the SessionFactory. /// </summary> /// <value>The db provider.</value> *************** *** 183,186 **** --- 183,187 ---- { set { dbProvider = value; } + get { return dbProvider; } } *************** *** 240,244 **** /// default location. /// </summary> ! public void AfterPropertiesSet() { // Create Configuration instance. --- 241,245 ---- /// default location. /// </summary> ! public virtual void AfterPropertiesSet() { // Create Configuration instance. |
From: Mark P. <mar...@us...> - 2008-03-21 14:12:06
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Validation/Validators In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10603 Modified Files: RequiredValidator.cs Log Message: misc updates, doc cleanup, code regions. Added getter for DbProvider in LocalSessionFactoryObject Index: RequiredValidator.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Validation/Validators/RequiredValidator.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** RequiredValidator.cs 9 Apr 2006 07:19:04 -0000 1.7 --- RequiredValidator.cs 21 Mar 2008 14:12:02 -0000 1.8 *************** *** 109,113 **** /// the test should be a variable expression that will be evaluated and the object /// obtained as a result of this evaluation will be tested using the rules described ! /// in the class overvoew of the <see cref="Spring.Validation.RequiredValidator"/> /// class. /// </remarks> --- 109,113 ---- /// the test should be a variable expression that will be evaluated and the object /// obtained as a result of this evaluation will be tested using the rules described ! /// in the class overview of the <see cref="Spring.Validation.RequiredValidator"/> /// class. /// </remarks> |
From: Mark P. <mar...@us...> - 2008-03-21 14:12:03
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Aop/Target In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10544 Modified Files: SingletonTargetSource.cs Log Message: misc updates, doc cleanup, code regions. Added getter for DbProvider in LocalSessionFactoryObject Index: SingletonTargetSource.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Aop/Target/SingletonTargetSource.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** SingletonTargetSource.cs 16 Mar 2007 04:01:26 -0000 1.7 --- SingletonTargetSource.cs 21 Mar 2008 14:11:57 -0000 1.8 *************** *** 64,68 **** } ! /// <summary> /// The <see cref="System.Type"/> of the target object. /// </summary> --- 64,70 ---- } ! #region ITarget Source impl ! ! /// <summary> /// The <see cref="System.Type"/> of the target object. /// </summary> *************** *** 106,112 **** public void ReleaseTarget(object target) { } ! /// <summary> /// Returns a stringified representation of this target source. /// </summary> --- 108,117 ---- public void ReleaseTarget(object target) { + } ! #endregion ! ! /// <summary> /// Returns a stringified representation of this target source. /// </summary> *************** *** 119,146 **** } ! /// <summary> ! /// Determines whether the specified <see cref="System.Object"/> ! /// is equal to the current <see cref="System.Object"/>. ! /// </summary> ! /// <param name="other">The target source to compare with.</param> ! /// <returns> ! /// <see langword="true"/> if this instance is equal to the ! /// specified <see cref="System.Object"/>. ! /// </returns> ! public override bool Equals(object other) ! { ! if (this == other) ! { ! return true; ! } ! SingletonTargetSource b = other as SingletonTargetSource; ! if (b == null) ! { ! return false; ! } ! return target.Equals(b.target); ! } ! /// <summary> /// Serves as a hash function for a particular type, suitable for use /// in hashing algorithms and data structures like a hash table. --- 124,151 ---- } ! /// <summary> ! /// Determines whether the specified <see cref="System.Object"/> ! /// is equal to the current <see cref="System.Object"/>. ! /// </summary> ! /// <param name="other">The target source to compare with.</param> ! /// <returns> ! /// <see langword="true"/> if this instance is equal to the ! /// specified <see cref="System.Object"/>. ! /// </returns> ! public override bool Equals(object other) ! { ! if (this == other) ! { ! return true; ! } ! SingletonTargetSource b = other as SingletonTargetSource; ! if (b == null) ! { ! return false; ! } ! return target.Equals(b.target); ! } ! /// <summary> /// Serves as a hash function for a particular type, suitable for use /// in hashing algorithms and data structures like a hash table. |
From: Mark P. <mar...@us...> - 2008-03-21 14:10:47
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.NHibernate.Integration.Tests/Data/NHibernate In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9945 Modified Files: DbProviderTemplateTests.cs dbProviderTemplateTests.xml Log Message: misc updates. Index: DbProviderTemplateTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.NHibernate.Integration.Tests/Data/NHibernate/DbProviderTemplateTests.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DbProviderTemplateTests.cs 4 Feb 2008 22:47:47 -0000 1.1 --- DbProviderTemplateTests.cs 21 Mar 2008 14:10:37 -0000 1.2 *************** *** 54,58 **** [Test] - [Ignore("Requires integration of LocalSessionFactoryObject with Hibernate ConnectionProvider")] public void UserCredentialsDbProvider() { --- 54,57 ---- *************** *** 73,76 **** --- 72,77 ---- } + + } Index: dbProviderTemplateTests.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.NHibernate.Integration.Tests/Data/NHibernate/dbProviderTemplateTests.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** dbProviderTemplateTests.xml 4 Feb 2008 22:47:47 -0000 1.1 --- dbProviderTemplateTests.xml 21 Mar 2008 14:10:37 -0000 1.2 *************** *** 18,28 **** provider="SqlServer-2.0" connectionString="Data Source=MARKT60\SQL2005;Trusted_Connection=False"/> - <!-- - <db:provider id="DbProvider" - provider="OracleODP-2.0" - connectionString="Data Source=AGORA; User Id=agora_user; Password=welcome_bad"/> - --> ! <object id="SessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate"> <property name="DbProvider" ref="DbProvider"/> <property name="MappingResources"> --- 18,30 ---- provider="SqlServer-2.0" connectionString="Data Source=MARKT60\SQL2005;Trusted_Connection=False"/> ! ! <db:provider id="standardDbProvider" ! provider="SqlServer-2.0" ! connectionString="Data Source=MARKT60\SQL2005;Trusted_Connection=False;User ID=springqa;Password=springqa"/> ! ! ! ! <object id="SessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate12"> <property name="DbProvider" ref="DbProvider"/> <property name="MappingResources"> *************** *** 40,58 **** <property name="HibernateProperties"> <dictionary> ! <!-- <entry key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/> <entry key="hibernate.dialect" value="NHibernate.Dialect.Oracle9Dialect"/> ! --> ! ! ! <entry key="hibernate.dialect" ! value="NHibernate.Dialect.MsSql2000Dialect"/> ! ! <entry key="hibernate.connection.driver_class" ! value="NHibernate.Driver.SqlClientDriver"/> ! </dictionary> </property> --- 42,59 ---- <property name="HibernateProperties"> <dictionary> ! <!-- use connection provided by DbProvider <entry key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/> + --> + <entry key="hibernate.dialect" + value="NHibernate.Dialect.MsSql2000Dialect"/> + + <entry key="hibernate.connection.driver_class" + value="NHibernate.Driver.SqlClientDriver"/> + <!-- <entry key="hibernate.dialect" value="NHibernate.Dialect.Oracle9Dialect"/> ! --> </dictionary> </property> *************** *** 71,75 **** <object id="hibernateTransactionManager" ! type="Spring.Data.NHibernate.HibernateTransactionManager, Spring.Data.NHibernate"> <property name="DbProvider" ref="DbProvider"/> --- 72,76 ---- <object id="hibernateTransactionManager" ! type="Spring.Data.NHibernate.HibernateTransactionManager, Spring.Data.NHibernate12"> <property name="DbProvider" ref="DbProvider"/> *************** *** 83,87 **** <object id="testObjectDaoTransProxy" type="Spring.Transaction.Interceptor.TransactionProxyFactoryObject, Spring.Data"> - <foo/> <property name="PlatformTransactionManager" ref="hibernateTransactionManager"/> <property name="Target"> --- 84,87 ---- |
From: Mark P. <mar...@us...> - 2008-03-21 14:10:38
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Integration.Tests/Data In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9875 Modified Files: NestedTxScopeTests.cs TestObjectManager.cs autoDeclarativeServices.xml Log Message: misc updates. Index: TestObjectManager.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Integration.Tests/Data/TestObjectManager.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestObjectManager.cs 25 Jul 2007 08:25:26 -0000 1.3 --- TestObjectManager.cs 21 Mar 2008 14:10:23 -0000 1.4 *************** *** 66,73 **** #region Methods ! [Transaction()] public void SaveTwoTestObjects(TestObject to1, TestObject to2) { LOG.Debug("TransactionActive = " + TransactionSynchronizationManager.ActualTransactionActive); testObjectDao.Create(to1.Name, to1.Age); testObjectDao.Create(to2.Name, to2.Age); --- 66,76 ---- #region Methods ! [Transaction] public void SaveTwoTestObjects(TestObject to1, TestObject to2) { LOG.Debug("TransactionActive = " + TransactionSynchronizationManager.ActualTransactionActive); + //Console.WriteLine("TransactionSynchronizationManager.CurrentTransactionIsolationLevel = " + + // TransactionSynchronizationManager.CurrentTransactionIsolationLevel); + //Console.WriteLine("System.Transactions.Transaction.Current.IsolationLevel = " + System.Transactions.Transaction.Current.IsolationLevel); testObjectDao.Create(to1.Name, to1.Age); testObjectDao.Create(to2.Name, to2.Age); *************** *** 83,85 **** --- 86,90 ---- #endregion } + + } Index: NestedTxScopeTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Integration.Tests/Data/NestedTxScopeTests.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NestedTxScopeTests.cs 4 Feb 2008 22:44:59 -0000 1.1 --- NestedTxScopeTests.cs 21 Mar 2008 14:10:23 -0000 1.2 *************** *** 143,147 **** public void UnwantedPromotion() { ! using (TransactionScope ts = new TransactionScope()) { InnerMethod(); --- 143,149 ---- public void UnwantedPromotion() { ! TransactionOptions transactionoptions1 = new TransactionOptions(); ! transactionoptions1.IsolationLevel = System.Transactions.IsolationLevel.ReadCommitted; ! using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required, transactionoptions1)) { InnerMethod(); *************** *** 160,163 **** --- 162,170 ---- cn2005.Open(); cmd.ExecuteNonQuery(); + Console.WriteLine("TransactionSynchronizationManager.CurrentTransactionIsolationLevel = " + + TransactionSynchronizationManager.CurrentTransactionIsolationLevel); + Console.WriteLine("System.Transactions.Transaction.Current.IsolationLevel = " + System.Transactions.Transaction.Current.IsolationLevel); + string name = TransactionSynchronizationManager.CurrentTransactionName; + bool read = TransactionSynchronizationManager.CurrentTransactionReadOnly; } } Index: autoDeclarativeServices.xml =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Integration.Tests/Data/autoDeclarativeServices.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** autoDeclarativeServices.xml 29 Jan 2008 18:22:33 -0000 1.7 --- autoDeclarativeServices.xml 21 Mar 2008 14:10:23 -0000 1.8 *************** *** 1,6 **** <?xml version="1.0" encoding="utf-8" ?> <objects xmlns='http://www.springframework.net' ! xmlns:d="http://www.springframework.net/database"> <!-- <d:provider id="DbProvider" --- 1,8 ---- <?xml version="1.0" encoding="utf-8" ?> <objects xmlns='http://www.springframework.net' ! xmlns:db="http://www.springframework.net/database" ! xmlns:tx="http://www.springframework.net/tx"> + <!-- <d:provider id="DbProvider" *************** *** 9,13 **** --> ! <d:provider id="DbProvider" provider="SqlServer-1.1" connectionString="Data Source=MARKT60\SQL2005;Database=Spring;User ID=springqa;Password=springqa;Trusted_Connection=False"/> --- 11,15 ---- --> ! <db:provider id="DbProvider" provider="SqlServer-1.1" connectionString="Data Source=MARKT60\SQL2005;Database=Spring;User ID=springqa;Password=springqa;Trusted_Connection=False"/> |
From: Erich E. <oak...@us...> - 2008-03-21 10:49:42
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Objects/Factory In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23865/test/Spring/Spring.Core.Tests/Objects/Factory Modified Files: DefaultListableObjectFactoryTests.cs Log Message: fixed SPRNET-394 fixed SPRNET-886 Index: DefaultListableObjectFactoryTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Objects/Factory/DefaultListableObjectFactoryTests.cs,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** DefaultListableObjectFactoryTests.cs 22 Aug 2007 08:52:12 -0000 1.43 --- DefaultListableObjectFactoryTests.cs 21 Mar 2008 10:49:38 -0000 1.44 *************** *** 1148,1152 **** fac.RegisterObjectDefinition("everyman", everyman); fac.ConfigureObject(instance, "everyman"); ! Assert.AreEqual("Noone", instance.Name, "Name dependency injected via IObjectFactory.ConfigureObject(instance) failed (was null)."); Assert.AreEqual(9781, instance.Age, "Age dependency injected via IObjectFactory.ConfigureObject(instance) failed (was null)."); } --- 1148,1153 ---- fac.RegisterObjectDefinition("everyman", everyman); fac.ConfigureObject(instance, "everyman"); ! Assert.AreEqual(true, instance.InitCompleted, "AfterPropertiesSet() was not invoked by IObjectFactory.ConfigureObject(instance)."); ! Assert.AreEqual("Noone", instance.Name, "Name dependency injected via IObjectFactory.ConfigureObject(instance) failed (was null)."); Assert.AreEqual(9781, instance.Age, "Age dependency injected via IObjectFactory.ConfigureObject(instance) failed (was null)."); } |
From: Erich E. <oak...@us...> - 2008-03-21 10:49:42
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Objects In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23865/test/Spring/Spring.Core.Tests/Objects Modified Files: TestObject.cs Log Message: fixed SPRNET-394 fixed SPRNET-886 Index: TestObject.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Objects/TestObject.cs,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** TestObject.cs 25 Aug 2007 16:08:36 -0000 1.36 --- TestObject.cs 21 Mar 2008 10:49:38 -0000 1.37 *************** *** 42,46 **** /// <author>Rod Johnson</author> /// <author>Mark Pollack (.NET)</author> ! public class TestObject : MarshalByRefObject, ITestObject, IObjectFactoryAware, IComparable, IOther, IApplicationContextAware, IObjectNameAware { #region Event testing members --- 42,46 ---- /// <author>Rod Johnson</author> /// <author>Mark Pollack (.NET)</author> ! public class TestObject : MarshalByRefObject, ITestObject, IObjectFactoryAware, IComparable, IOther, IApplicationContextAware, IObjectNameAware, IInitializingObject { #region Event testing members *************** *** 291,295 **** } - public int ExceptionMethodCallCount { --- 291,294 ---- *************** *** 297,300 **** --- 296,304 ---- } + public bool InitCompleted + { + get { return initCompleted; } + set { initCompleted = value; } + } public Size Size *************** *** 376,379 **** --- 380,384 ---- private string objectName; private Size size; + private bool initCompleted; #endregion *************** *** 424,427 **** --- 429,437 ---- #region Methods + public void AfterPropertiesSet() + { + initCompleted = true; + } + public void AddComputerName(string name) { |
From: Erich E. <oak...@us...> - 2008-03-21 10:49:42
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Context/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23865/test/Spring/Spring.Core.Tests/Context/Support Modified Files: ContextRegistryTests.cs Log Message: fixed SPRNET-394 fixed SPRNET-886 Index: ContextRegistryTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Context/Support/ContextRegistryTests.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ContextRegistryTests.cs 7 Oct 2006 14:51:23 -0000 1.8 --- ContextRegistryTests.cs 21 Mar 2008 10:49:38 -0000 1.9 *************** *** 22,25 **** --- 22,26 ---- using System; + using System.Xml; using NUnit.Framework; *************** *** 42,45 **** --- 43,76 ---- } + + /// <summary> + /// This handler simulates calls to ContextRegistry during context creation + /// </summary> + private static object GetContextRecursive(object parent, object context, XmlNode section) + { + return ContextRegistry.GetContext(); // this must fail! + } + + [Test] + public void ThrowsInvalidOperationExceptionOnRecursiveCallsToGetContext() + { + HookableContextHandler.CreateContextFromSectionHandler prevInst = HookableContextHandler.SetSectionHandler( + new HookableContextHandler.CreateContextFromSectionHandler(GetContextRecursive)); + try + { + ContextRegistry.GetContext("somename"); + } + catch(Exception ex) + { + InvalidOperationException rootCause = ex.GetBaseException() as InvalidOperationException; + Assert.IsNotNull(rootCause); + Assert.AreEqual("root context is currently in creation.", rootCause.Message.Substring(0, 38)); + } + finally + { + HookableContextHandler.SetSectionHandler(prevInst); + } + } + [Test] public void RegisterRootContext() |
From: Erich E. <oak...@us...> - 2008-03-21 10:49:42
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23865/test/Spring/Spring.Core.Tests Modified Files: Spring.Core.Tests.2005.csproj Spring.Core.Tests.dll.config Added Files: HookableContextHandler.cs Log Message: fixed SPRNET-394 fixed SPRNET-886 Index: Spring.Core.Tests.dll.config =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Spring.Core.Tests.dll.config,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** Spring.Core.Tests.dll.config 13 Mar 2008 20:07:54 -0000 1.21 --- Spring.Core.Tests.dll.config 21 Mar 2008 10:49:38 -0000 1.22 *************** *** 30,34 **** <sectionGroup name='spring'> <section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core"/> ! <section name='context' type='Spring.Context.Support.ContextHandler, Spring.Core'/> <section name='objects' type='Spring.Context.Support.DefaultSectionHandler, Spring.Core' /> <sectionGroup name="child"> --- 30,34 ---- <sectionGroup name='spring'> <section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core"/> ! <section name='context' type='Spring.HookableContextHandler, Spring.Core.Tests'/> <section name='objects' type='Spring.Context.Support.DefaultSectionHandler, Spring.Core' /> <sectionGroup name="child"> Index: Spring.Core.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Spring.Core.Tests.2005.csproj,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** Spring.Core.Tests.2005.csproj 20 Mar 2008 23:58:16 -0000 1.77 --- Spring.Core.Tests.2005.csproj 21 Mar 2008 10:49:38 -0000 1.78 *************** *** 298,301 **** --- 298,302 ---- <SubType>Code</SubType> </Compile> + <Compile Include="HookableContextHandler.cs" /> <Compile Include="Objects\ExpressionTestObject.cs" /> <Compile Include="Objects\Factory\Config\CommandLineArgsVariableSourceTests.cs" /> --- NEW FILE: HookableContextHandler.cs --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2008-03-21 10:49:41
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Aop.Tests/Aop/Framework In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23865/test/Spring/Spring.Aop.Tests/Aop/Framework Modified Files: ProxyFactoryTests.cs Log Message: fixed SPRNET-394 fixed SPRNET-886 Index: ProxyFactoryTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Aop.Tests/Aop/Framework/ProxyFactoryTests.cs,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** ProxyFactoryTests.cs 14 Jan 2008 20:49:47 -0000 1.21 --- ProxyFactoryTests.cs 21 Mar 2008 10:49:38 -0000 1.22 *************** *** 448,452 **** TestObjectSubclass raw = new TestObjectSubclass(); ProxyFactory factory = new ProxyFactory(raw); ! Assert.AreEqual(6, factory.Interfaces.Length, "Found correct number of interfaces"); //System.out.println("Proxied interfaces are " + StringUtils.arrayToDelimitedString(factory.getProxiedInterfaces(), ",")); ITestObject tb = (ITestObject) factory.GetProxy(); --- 448,452 ---- TestObjectSubclass raw = new TestObjectSubclass(); ProxyFactory factory = new ProxyFactory(raw); ! Assert.AreEqual(7, factory.Interfaces.Length, "Found correct number of interfaces"); //System.out.println("Proxied interfaces are " + StringUtils.arrayToDelimitedString(factory.getProxiedInterfaces(), ",")); ITestObject tb = (ITestObject) factory.GetProxy(); |