springnet-commits Mailing List for Spring Framework .NET (Page 29)
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...> - 2007-12-04 08:17:28
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Data.Tests/Data/Core In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14951 Added Files: ServiceDomainTransactionManagerTests.cs Log Message: SPRNET-773 - Unit tests for ServiceDomainTransactionManager --- NEW FILE: ServiceDomainTransactionManagerTests.cs --- (This appears to be a binary file; contents omitted.) |
From: Mark P. <mar...@us...> - 2007-12-04 08:16:46
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14558/Core Modified Files: ServiceDomainPlatformTransactionManager.cs Log Message: SPRNET-773 - Unit tests for ServiceDomainTransactionManager (refactorings to support) Index: ServiceDomainPlatformTransactionManager.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core/ServiceDomainPlatformTransactionManager.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ServiceDomainPlatformTransactionManager.cs 1 Dec 2007 20:18:09 -0000 1.3 --- ServiceDomainPlatformTransactionManager.cs 4 Dec 2007 08:16:42 -0000 1.4 *************** *** 44,47 **** --- 44,53 ---- public class ServiceDomainPlatformTransactionManager : AbstractPlatformTransactionManager, IInitializingObject { + private IServiceDomainAdapter txAdapter; + + private bool trackingEnabled = true; + private string trackingAppName = "Spring.NET"; + private string trackingComponentName = "ServiceDomainPlatformTransactionManager"; + #region Constructor (s) /// <summary> *************** *** 53,58 **** --- 59,107 ---- } + /// <summary> + /// Initializes a new instance of the <see cref="ServiceDomainPlatformTransactionManager"/> class. + /// </summary> + /// <remarks>This is indented only for unit testing purposes and should not be + /// called by production application code.</remarks> + /// <param name="txAdapter">The tx adapter.</param> + public ServiceDomainPlatformTransactionManager(IServiceDomainAdapter txAdapter) + { + this.txAdapter = txAdapter; + } + #endregion + + /// <summary> + /// Gets or sets a value indicating whether tracking is enabled. + /// </summary> + /// <value><c>true</c> if tracking is enabled; otherwise, <c>false</c>.</value> + public bool TrackingEnabled + { + get { return trackingEnabled; } + set { trackingEnabled = value; } + } + + /// <summary> + /// Gets or sets a text string that corresponds to the application ID under which tracker information is reported. + /// The default value is 'Spring.NET' + /// </summary> + /// <value>The name of the tracking app.</value> + public string TrackingAppName + { + get { return trackingAppName; } + set { trackingAppName = value; } + } + + /// <summary> + /// Gets or sets a text string that corresponds to the context name under which tracker information is reported. + /// </summary> + /// <value>The name of the tracking component.</value> + public string TrackingComponentName + { + get { return trackingComponentName; } + set { trackingComponentName = value; } + } + public void AfterPropertiesSet() { *************** *** 100,104 **** private void DoServiceDomainBegin(ServiceDomainTransactionObject serviceDomainTxObject, ITransactionDefinition definition) { ! ServiceConfig serviceConfig = CreateServiceConfig(definition); //The context is created when we call Enter. serviceDomainTxObject.ServiceDomainAdapter.Enter(serviceConfig); --- 149,158 ---- private void DoServiceDomainBegin(ServiceDomainTransactionObject serviceDomainTxObject, ITransactionDefinition definition) { ! SimpleServiceConfig serviceConfig = CreateServiceConfig(definition); ! ! if (txAdapter != null) ! { ! serviceDomainTxObject.ServiceDomainAdapter = txAdapter; ! } //The context is created when we call Enter. serviceDomainTxObject.ServiceDomainAdapter.Enter(serviceConfig); *************** *** 123,137 **** } ! private ServiceConfig CreateServiceConfig(ITransactionDefinition definition) { ! ServiceConfig serviceConfig = new ServiceConfig(); //TODO investigate BringYourOwnTransaction and TipUrl properties of ServiceConfig serviceConfig.TransactionDescription = definition.Name; ! //TODO expose these as configuration options? ! serviceConfig.TrackingEnabled = true; ! serviceConfig.TrackingAppName = "Spring.NET"; ! serviceConfig.TrackingComponentName = "ServiceDomainPlatformTransactionManager"; ApplyPropagationBehavior(serviceConfig, definition); --- 177,190 ---- } ! private SimpleServiceConfig CreateServiceConfig(ITransactionDefinition definition) { ! SimpleServiceConfig serviceConfig = new SimpleServiceConfig(); //TODO investigate BringYourOwnTransaction and TipUrl properties of ServiceConfig serviceConfig.TransactionDescription = definition.Name; ! serviceConfig.TrackingEnabled = TrackingEnabled; ! serviceConfig.TrackingAppName = TrackingAppName; ! serviceConfig.TrackingComponentName = TrackingComponentName; ApplyPropagationBehavior(serviceConfig, definition); *************** *** 147,151 **** } ! protected void ApplyIsolationLevel(ServiceConfig serviceConfig, ITransactionDefinition definition) { switch (definition.TransactionIsolationLevel) --- 200,204 ---- } ! protected void ApplyIsolationLevel(SimpleServiceConfig serviceConfig, ITransactionDefinition definition) { switch (definition.TransactionIsolationLevel) *************** *** 187,212 **** } ! protected void ApplyPropagationBehavior(ServiceConfig serviceConfig, ITransactionDefinition definition) { if (definition.PropagationBehavior == TransactionPropagation.Required) { ! serviceConfig.Transaction = TransactionOption.Required; } else if (definition.PropagationBehavior == TransactionPropagation.RequiresNew) { ! serviceConfig.Transaction = TransactionOption.RequiresNew; } else if (definition.PropagationBehavior == TransactionPropagation.Supports) { ! serviceConfig.Transaction = TransactionOption.Supported; } else if (definition.PropagationBehavior == TransactionPropagation.NotSupported) { ! serviceConfig.Transaction = TransactionOption.NotSupported; } else if (definition.PropagationBehavior == TransactionPropagation.Never) { //TODO check the validity of this mapping ! serviceConfig.Transaction = TransactionOption.Disabled; } else { --- 240,265 ---- } ! protected void ApplyPropagationBehavior(SimpleServiceConfig serviceConfig, ITransactionDefinition definition) { if (definition.PropagationBehavior == TransactionPropagation.Required) { ! serviceConfig.TransactionOption = TransactionOption.Required; } else if (definition.PropagationBehavior == TransactionPropagation.RequiresNew) { ! serviceConfig.TransactionOption = TransactionOption.RequiresNew; } else if (definition.PropagationBehavior == TransactionPropagation.Supports) { ! serviceConfig.TransactionOption = TransactionOption.Supported; } else if (definition.PropagationBehavior == TransactionPropagation.NotSupported) { ! serviceConfig.TransactionOption = TransactionOption.NotSupported; } else if (definition.PropagationBehavior == TransactionPropagation.Never) { //TODO check the validity of this mapping ! serviceConfig.TransactionOption = TransactionOption.Disabled; } else { *************** *** 329,333 **** get { ! if ( ContextUtil.MyTransactionVote == TransactionVote.Abort) { return true; --- 382,386 ---- get { ! if ( serviceDomainAdapter.MyTransactionVote == TransactionVote.Abort) { return true; |
From: Mark P. <mar...@us...> - 2007-12-04 08:16:46
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14558/Support Modified Files: DefaultServiceDomainAdapter.cs IServiceDomainAdapter.cs Added Files: SimpleServiceConfig.cs Log Message: SPRNET-773 - Unit tests for ServiceDomainTransactionManager (refactorings to support) --- NEW FILE: SimpleServiceConfig.cs --- using System.EnterpriseServices; namespace Spring.Data.Support { /// <summary> /// A class that contains the properties of ServiceConfig used by ServiceDomainPlatformTransactionManager. This is /// done to enhance testability of the transaction manager since ServiceConfig does not override Equals or Hashcode /// </summary> public class SimpleServiceConfig { private string transactionDescription; private bool trackingEnabled = true; private string trackingAppName; private string trackingComponentName; private TransactionOption transactionOption; private TransactionIsolationLevel isolationLevel; private int transactionTimeout; public string TransactionDescription { get { return transactionDescription; } set { transactionDescription = value; } } public bool TrackingEnabled { get { return trackingEnabled; } set { trackingEnabled = value; } } public string TrackingAppName { get { return trackingAppName; } set { trackingAppName = value; } } public string TrackingComponentName { get { return trackingComponentName; } set { trackingComponentName = value; } } public TransactionOption TransactionOption { get { return transactionOption; } set { transactionOption = value; } } public TransactionIsolationLevel IsolationLevel { get { return isolationLevel; } set { isolationLevel = value; } } public int TransactionTimeout { get { return transactionTimeout; } set { transactionTimeout = value; } } public ServiceConfig CreateServiceConfig() { ServiceConfig serviceConfig = new ServiceConfig(); serviceConfig.TransactionDescription = this.transactionDescription; serviceConfig.TrackingEnabled = this.trackingEnabled; serviceConfig.TrackingAppName = this.trackingAppName; serviceConfig.TrackingComponentName = this.trackingComponentName; serviceConfig.Transaction = this.transactionOption; serviceConfig.IsolationLevel = this.isolationLevel; serviceConfig.TransactionTimeout = this.transactionTimeout; return serviceConfig; } public override bool Equals(object obj) { if (this == obj) return true; SimpleServiceConfig simpleServiceConfig = obj as SimpleServiceConfig; if (simpleServiceConfig == null) return false; if (!Equals(transactionDescription, simpleServiceConfig.transactionDescription)) return false; if (!Equals(trackingEnabled, simpleServiceConfig.trackingEnabled)) return false; if (!Equals(trackingAppName, simpleServiceConfig.trackingAppName)) return false; if (!Equals(trackingComponentName, simpleServiceConfig.trackingComponentName)) return false; if (!Equals(transactionOption, simpleServiceConfig.transactionOption)) return false; if (!Equals(isolationLevel, simpleServiceConfig.isolationLevel)) return false; if (transactionTimeout != simpleServiceConfig.transactionTimeout) return false; return true; } public override int GetHashCode() { int result = transactionDescription != null ? transactionDescription.GetHashCode() : 0; result = 29*result + trackingEnabled.GetHashCode(); result = 29*result + (trackingAppName != null ? trackingAppName.GetHashCode() : 0); result = 29*result + (trackingComponentName != null ? trackingComponentName.GetHashCode() : 0); result = 29*result + transactionOption.GetHashCode(); result = 29*result + isolationLevel.GetHashCode(); result = 29*result + transactionTimeout; return result; } } } Index: DefaultServiceDomainAdapter.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Support/DefaultServiceDomainAdapter.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DefaultServiceDomainAdapter.cs 1 Dec 2007 20:02:57 -0000 1.2 --- DefaultServiceDomainAdapter.cs 4 Dec 2007 08:16:42 -0000 1.3 *************** *** 39,45 **** /// </summary> /// <param name="config">A ServiceConfig that contains the configuration information for the services to be used within the enclosed code.</param> ! public void Enter(ServiceConfig config) { ! ServiceDomain.Enter(config); } --- 39,46 ---- /// </summary> /// <param name="config">A ServiceConfig that contains the configuration information for the services to be used within the enclosed code.</param> ! public void Enter(SimpleServiceConfig config) { ! ServiceConfig serviceConfig = config.CreateServiceConfig(); ! ServiceDomain.Enter(serviceConfig); } Index: IServiceDomainAdapter.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Support/IServiceDomainAdapter.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** IServiceDomainAdapter.cs 1 Dec 2007 20:02:57 -0000 1.2 --- IServiceDomainAdapter.cs 4 Dec 2007 08:16:42 -0000 1.3 *************** *** 39,43 **** /// </summary> /// <param name="config">A ServiceConfig that contains the configuration information for the services to be used within the enclosed code.</param> ! void Enter(ServiceConfig config); /// <summary> --- 39,43 ---- /// </summary> /// <param name="config">A ServiceConfig that contains the configuration information for the services to be used within the enclosed code.</param> ! void Enter(SimpleServiceConfig config); /// <summary> |
From: Mark P. <mar...@us...> - 2007-12-04 06:53:16
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14619 Modified Files: Spring.Data.2005.csproj Log Message: SPRNET-793 - Add Execute methods missing in Generic.AdoTemplate but present in non-generic version. Index: Spring.Data.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Spring.Data.2005.csproj,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** Spring.Data.2005.csproj 30 Nov 2007 22:00:20 -0000 1.57 --- Spring.Data.2005.csproj 4 Dec 2007 06:53:13 -0000 1.58 *************** *** 147,150 **** --- 147,152 ---- <Compile Include="Data\Core\TxScopeTransactionManager.cs" /> <Compile Include="Data\Generic\AdoDaoSupport.cs" /> + <Compile Include="Data\Generic\IDataAdapterCallback.cs" /> + <Compile Include="Data\Generic\DataAdapterDelegate.cs" /> <Compile Include="Data\Generic\IDbCommandDelegate.cs" /> <Compile Include="Data\Generic\IDbCommandCallback.cs" /> |
From: Mark P. <mar...@us...> - 2007-12-04 06:52:23
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14225 Modified Files: IAdoOperations.cs Log Message: SPRNET-752 - Implement advanced DataSet related methods in AdoTemplate Index: IAdoOperations.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/IAdoOperations.cs,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** IAdoOperations.cs 25 Jul 2007 08:25:19 -0000 1.23 --- IAdoOperations.cs 4 Dec 2007 06:52:19 -0000 1.24 *************** *** 49,60 **** /// <summary> ! /// Execute a ADO.NET operation on a command object using a interface based callback. /// </summary> /// <param name="action">the callback to execute</param> /// <returns>object returned from callback</returns> object Execute(ICommandCallback action); ! object Execute(IDbCommandCreator commandCreator, ICommandCallback commandCallback); ! object Execute(IDataAdapterCallback dataAdapterCallback); --- 49,75 ---- /// <summary> ! /// Execute a ADO.NET operation on a command object using an interface based callback. /// </summary> /// <param name="action">the callback to execute</param> /// <returns>object returned from callback</returns> object Execute(ICommandCallback action); + + /// <summary> + /// Executes ADO.NET operations on a command object, created by the provided IDbCommandCreator, + /// using the interface based callback IDbCommandCallback. + /// </summary> + /// <param name="commandCreator">The command creator.</param> + /// <param name="action">The callback to execute based on IDbCommand</param> + /// <returns>A result object returned by the action or null</returns> + object Execute(IDbCommandCreator commandCreator, ICommandCallback action); ! /// <summary> ! /// Execute ADO.NET operations on a IDbDataAdapter object using an interface based callback. ! /// </summary> ! /// <remarks>This allows for implementing abritrary data access operations ! /// on a single DataAdapter within Spring's managed ADO.NET environment. ! /// </remarks> ! /// <param name="dataAdapterCallback">The data adapter callback.</param> ! /// <returns>A result object returned by the callback or null</returns> object Execute(IDataAdapterCallback dataAdapterCallback); *************** *** 514,533 **** IDbParameters parameters, ITableMapping tableMapping, ! IDataAdapterSetter dataAdapterSetter); ! ! ! //TODO ! /* ! int DataTableUpdateWithCommandBuilder(DataTable dataTable, ! CommandType commandType, ! string selectSql, ! IDbParameters parameters, ! IDbDataAdapterCreator dataAdapterCreator); ! */ ! ! int DataTableUpdateWithCommandBuilder(DataTable dataTable, ! IDbCommandCreator selectCommandCreator, ! IDbDataAdapterCreator dataAdapterCreator); ! int DataTableUpdate(DataTable dataTable, --- 529,533 ---- IDbParameters parameters, ITableMapping tableMapping, ! IDataAdapterSetter dataAdapterSetter); int DataTableUpdate(DataTable dataTable, *************** *** 598,605 **** IDataAdapterSetter dataAdapterSetter, IDataSetFillLifecycleProcessor fillLifecycleProcessor); ! ! DataSet DataSetCreateWithParams(IDbDataAdapterCreator dataAdapterCreator, ! IDataSetFillLifecycleProcessor fillLifecycleProcessor); ! #endregion --- 598,602 ---- IDataAdapterSetter dataAdapterSetter, IDataSetFillLifecycleProcessor fillLifecycleProcessor); ! #endregion *************** *** 665,674 **** ITableMappingCollection tableMapping, IDataAdapterSetter dataAdapterSetter, ! IDataSetFillLifecycleProcessor fillLifecycleProcessor); ! ! int DataSetFillWithParameters(DataSet dataSet, ! IDbDataAdapterCreator dataAdapterCreator, ! IDataSetFillLifecycleProcessor fillLifecycleProcessor); ! #endregion --- 662,666 ---- ITableMappingCollection tableMapping, IDataAdapterSetter dataAdapterSetter, ! IDataSetFillLifecycleProcessor fillLifecycleProcessor); #endregion *************** *** 681,685 **** CommandType commandType, string selectSql, ! IDbParameters parameters, string tableName); --- 673,677 ---- CommandType commandType, string selectSql, ! IDbParameters selectParameters, string tableName); *************** *** 687,691 **** CommandType commandType, string selectSql, ! IDbParameters parameters, string tableName, IDataAdapterSetter dataAdapterSetter); --- 679,683 ---- CommandType commandType, string selectSql, ! IDbParameters selectParameters, string tableName, IDataAdapterSetter dataAdapterSetter); *************** *** 694,712 **** CommandType commandType, string selectSql, ! IDbParameters parameters, ITableMappingCollection tableMapping, IDataAdapterSetter dataAdapterSetter); ! ! int DataSetUpdateWithCommandBuilder(DataSet dataSet, ! CommandType commandType, ! string selectSql, ! IDbParameters parameters, ! IDbDataAdapterCreator dataAdapterCreator); ! ! int DataSetUpdateWithCommandBuilder(DataSet dataSet, ! IDbCommandCreator selectCommandCreator, ! IDbDataAdapterCreator dataAdapterCreator); ! ! int DataSetUpdate(DataSet dataSet, --- 686,693 ---- CommandType commandType, string selectSql, ! IDbParameters selectParameters, ITableMappingCollection tableMapping, IDataAdapterSetter dataAdapterSetter); ! int DataSetUpdate(DataSet dataSet, |
From: Mark P. <mar...@us...> - 2007-12-04 06:52:23
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14225/Core Modified Files: AdoTemplate.cs Log Message: SPRNET-752 - Implement advanced DataSet related methods in AdoTemplate Index: AdoTemplate.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core/AdoTemplate.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** AdoTemplate.cs 28 Nov 2007 05:54:47 -0000 1.6 --- AdoTemplate.cs 4 Dec 2007 06:52:19 -0000 1.7 *************** *** 2,6 **** /* ! * Copyright © 2002-2006 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); --- 2,6 ---- /* ! * Copyright © 2002-2007 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); *************** *** 28,36 **** using System.Reflection; using Common.Logging; - using Spring.Core; using Spring.Dao.Support; using Spring.Data.Common; using Spring.Data.Support; - using Spring.Objects; using Spring.Util; --- 28,34 ---- *************** *** 39,68 **** namespace Spring.Data.Core { - - #region Experimental Helper Clases - /* - internal class ExecuteTypeDataAdapterCallback : ICommandCallback - { - private object adapter; - private ITypedAdapterCallback adapterCallback; - public ExecuteTypeDataAdapterCallback(object adapter, ITypedAdapterCallback callback) - { - this.adapter = adapter; - this.adapterCallback = callback; - } - - public object DoInCommand(IDbCommand command) - { - TypedDataSetUtils.ApplyConnectionAndTx(adapter, command); - return adapterCallback.DoWithAdapter(adapter); - } - } - */ - #endregion - /// <summary> /// This is the central class in the Spring.Data namespace. /// It simplifies the use of ADO.NET and helps to avoid commons errors. /// </summary> public class AdoTemplate : AdoAccessor, IAdoOperations { --- 37,46 ---- namespace Spring.Data.Core { /// <summary> /// This is the central class in the Spring.Data namespace. /// It simplifies the use of ADO.NET and helps to avoid commons errors. /// </summary> + /// <author>Mark Pollack (.NET)</author> + /// <version>$Id$</version> public class AdoTemplate : AdoAccessor, IAdoOperations { *************** *** 232,236 **** } - /// <summary> /// Callback to execute a IDbCommand. --- 210,213 ---- *************** *** 238,242 **** /// <param name="action">the callback to execute</param> /// <returns>object returned from callback</returns> ! public Object Execute(ICommandCallback action) { ConnectionTxPair connectionTxPairToUse = ConnectionUtils.GetConnectionTxPair(DbProvider); --- 215,219 ---- /// <param name="action">the callback to execute</param> /// <returns>object returned from callback</returns> ! public object Execute(ICommandCallback action) { ConnectionTxPair connectionTxPairToUse = ConnectionUtils.GetConnectionTxPair(DbProvider); *************** *** 281,287 **** } ! ! ! public Object Execute(IDbCommandCreator commandCreator, ICommandCallback action) { AssertUtils.ArgumentNotNull(commandCreator, "commandCreator", "IDbCommandCreator must not be null"); --- 258,269 ---- } ! /// <summary> ! /// Executes ADO.NET operations on a command object, created by the provided IDbCommandCreator, ! /// using the interface based callback IDbCommandCallback. ! /// </summary> ! /// <param name="commandCreator">The command creator.</param> ! /// <param name="action">The callback to execute based on IDbCommand</param> ! /// <returns>A result object returned by the action or null</returns> ! public object Execute(IDbCommandCreator commandCreator, ICommandCallback action) { AssertUtils.ArgumentNotNull(commandCreator, "commandCreator", "IDbCommandCreator must not be null"); *************** *** 331,341 **** } ! public object Execute(IDataAdapterCallback dataAdapterCallback) { ConnectionTxPair connectionTxPairToUse = ConnectionUtils.GetConnectionTxPair(DbProvider); - - - IDbDataAdapter dataAdapter = null; try --- 313,327 ---- } ! /// <summary> ! /// Execute ADO.NET operations on a IDbDataAdapter object using an interface based callback. ! /// </summary> ! /// <remarks>This allows for implementing abritrary data access operations ! /// on a single DataAdapter within Spring's managed ADO.NET environment. ! /// </remarks> ! /// <param name="dataAdapterCallback">The data adapter callback.</param> ! /// <returns>A result object returned by the callback or null</returns> public object Execute(IDataAdapterCallback dataAdapterCallback) { ConnectionTxPair connectionTxPairToUse = ConnectionUtils.GetConnectionTxPair(DbProvider); IDbDataAdapter dataAdapter = null; try *************** *** 1321,1325 **** ValidateUpdateWithCommandBuilderArguments(dataTable, tableMapping, selectSql); ITableMappingCollection mappingCollection = new DataTableMappingCollection(); ! mappingCollection.Add((object)tableMapping); return (int)Execute(new DataAdapterUpdateWithCommandBuilderCallback(dataTable, DbProvider.CreateCommandBuilder(), --- 1307,1311 ---- ValidateUpdateWithCommandBuilderArguments(dataTable, tableMapping, selectSql); ITableMappingCollection mappingCollection = new DataTableMappingCollection(); ! mappingCollection.Add(tableMapping); return (int)Execute(new DataAdapterUpdateWithCommandBuilderCallback(dataTable, DbProvider.CreateCommandBuilder(), *************** *** 1331,1349 **** } - public int DataTableUpdateWithCommandBuilder(DataTable dataTable, - CommandType commandType, - string selectSql, - IDbParameters parameters, - IDbDataAdapterCreator dataAdapterCreator) - { - throw new NotImplementedException(); - } - public int DataTableUpdateWithCommandBuilder(DataTable dataTable, - IDbCommandCreator selectCommandCreator, - IDbDataAdapterCreator dataAdapterCreator) - { - throw new NotImplementedException(); - } public int DataTableUpdate(DataTable dataTable, --- 1317,1321 ---- *************** *** 1499,1508 **** } - public DataSet DataSetCreateWithParams(IDbDataAdapterCreator dataAdapterCreator, - IDataSetFillLifecycleProcessor fillLifecycleProcessor) - { - throw new NotImplementedException(); - } - #endregion --- 1471,1474 ---- *************** *** 1648,1662 **** } - - - public int DataSetFillWithParameters(DataSet dataSet, - IDbDataAdapterCreator dataAdapterCreator, - IDataSetFillLifecycleProcessor fillLifecycleProcessor) - { - throw new NotImplementedException(); - } - - - #endregion --- 1614,1617 ---- *************** *** 1665,1669 **** CommandType commandType, string selectSql, ! IDbParameters parameters, string tableName) { --- 1620,1624 ---- CommandType commandType, string selectSql, ! IDbParameters selectParameters, string tableName) { *************** *** 1675,1679 **** commandType, selectSql, ! parameters, null)); } --- 1630,1634 ---- commandType, selectSql, ! selectParameters, null)); } *************** *** 1682,1686 **** CommandType commandType, string selectSql, ! IDbParameters parameters, string tableName, IDataAdapterSetter dataAdapterSetter) --- 1637,1641 ---- CommandType commandType, string selectSql, ! IDbParameters selectParameters, string tableName, IDataAdapterSetter dataAdapterSetter) *************** *** 1693,1697 **** commandType, selectSql, ! parameters, dataAdapterSetter)); } --- 1648,1652 ---- commandType, selectSql, ! selectParameters, dataAdapterSetter)); } *************** *** 1700,1704 **** CommandType commandType, string selectSql, ! IDbParameters parameters, ITableMappingCollection mappingCollection, IDataAdapterSetter dataAdapterSetter) --- 1655,1659 ---- CommandType commandType, string selectSql, ! IDbParameters selectParameters, ITableMappingCollection mappingCollection, IDataAdapterSetter dataAdapterSetter) *************** *** 1710,1733 **** commandType, selectSql, ! parameters, dataAdapterSetter)); } - public int DataSetUpdateWithCommandBuilder(DataSet dataSet, - CommandType commandType, - string selectSql, - IDbParameters parameters, - IDbDataAdapterCreator dataAdapterCreator) - { - throw new NotImplementedException(); - } - - public int DataSetUpdateWithCommandBuilder(DataSet dataSet, - IDbCommandCreator selectCommandCreator, - IDbDataAdapterCreator dataAdapterCreator) - { - throw new NotImplementedException(); - } - public int DataSetUpdate(DataSet dataSet, string tableName, --- 1665,1672 ---- commandType, selectSql, ! selectParameters, dataAdapterSetter)); } public int DataSetUpdate(DataSet dataSet, string tableName, *************** *** 2208,2211 **** --- 2147,2152 ---- #region Private DataAdapter Helper callbacks + + private class DataAdapterFillCallback : IDataAdapterCallback { *************** *** 3130,3132 **** --- 3071,3074 ---- } } + } \ No newline at end of file |
From: Mark P. <mar...@us...> - 2007-12-04 06:49:26
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13027 Modified Files: IDataAdapterCallback.cs Log Message: doc cleanup Index: IDataAdapterCallback.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/IDataAdapterCallback.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** IDataAdapterCallback.cs 29 Nov 2006 07:18:45 -0000 1.2 --- IDataAdapterCallback.cs 4 Dec 2007 06:49:17 -0000 1.3 *************** *** 37,42 **** /// data between two different DataSets. /// </p> ! /// <p>Used internally by AdoTemplate, but also useful for ! /// application code. Note that the passed in IDbDataAdapter /// has been created by the framework and its SelectCommand /// will be populated with values for CommandType and Text properties --- 37,41 ---- /// data between two different DataSets. /// </p> ! /// <p>Note that the passed in IDbDataAdapter /// has been created by the framework and its SelectCommand /// will be populated with values for CommandType and Text properties *************** *** 44,47 **** --- 43,48 ---- /// calling transaction context. /// </p> + /// <see cref="Spring.Data.Core.AdoTemplate"/> Execute(IDataAdapterCallback dataAdapterCallback) + /// method. /// </remarks> /// <author>Mark Pollack (.NET)</author> |
From: Mark P. <mar...@us...> - 2007-12-04 06:48:25
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Generic In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12636 Modified Files: AdoTemplate.cs IAdoOperations.cs Added Files: DataAdapterDelegate.cs IDataAdapterCallback.cs Log Message: SPRNET-793 - Add Execute methods missing in Generic.AdoTemplate but present in non-generic version. Index: IAdoOperations.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Generic/IAdoOperations.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** IAdoOperations.cs 25 Jul 2007 08:26:15 -0000 1.8 --- IAdoOperations.cs 4 Dec 2007 06:48:21 -0000 1.9 *************** *** 52,56 **** /// </summary> /// <typeparam name="T">The type of object returned from the callback.</typeparam> ! /// <param name="action">the callback to execute based on IDbCommand</param> /// <returns>An object returned from callback</returns> T Execute<T>(IDbCommandCallback<T> action); --- 52,56 ---- /// </summary> /// <typeparam name="T">The type of object returned from the callback.</typeparam> ! /// <param name="action">The callback to execute based on IDbCommand</param> /// <returns>An object returned from callback</returns> T Execute<T>(IDbCommandCallback<T> action); *************** *** 75,83 **** /// <returns>A result object returned by the action or null</returns> T Execute<T>(IDbCommandDelegate<T> del); - - - //T Execute<T>(IDbCommandCreator commandCreator, ICommandCallback commandCallback); ! //T Execute<T>(IDataAdapterCallback dataAdapterCallback); #endregion --- 75,110 ---- /// <returns>A result object returned by the action or null</returns> T Execute<T>(IDbCommandDelegate<T> del); ! /// <summary> ! /// Executes ADO.NET operations on a command object, created by the provided IDbCommandCreator, ! /// using the interface based callback IDbCommandCallback. ! /// </summary> ! /// <typeparam name="T">The type of object returned from the callback.</typeparam> ! /// <param name="commandCreator">The command creator.</param> ! /// <param name="action">The callback to execute based on IDbCommand</param> ! /// <returns>A result object returned by the action or null</returns> ! T Execute<T>(IDbCommandCreator commandCreator, IDbCommandCallback<T> action); ! ! /// <summary> ! /// Execute ADO.NET operations on a IDbDataAdapter object using an interface based callback. ! /// </summary> ! /// <remarks>This allows for implementing abritrary data access operations ! /// on a single DataAdapter within Spring's managed ADO.NET environment. ! /// </remarks> ! /// <typeparam name="T">The type of object returned from the callback.</typeparam> ! /// <param name="dataAdapterCallback">The data adapter callback.</param> ! /// <returns>A result object returned by the callback or null</returns> ! T Execute<T>(IDataAdapterCallback<T> dataAdapterCallback); ! ! /// <summary> ! /// Execute ADO.NET operations on a IDbDataAdapter object using an delgate based callback. ! /// </summary> ! /// <remarks>This allows for implementing abritrary data access operations ! /// on a single DataAdapter within Spring's managed ADO.NET environment. ! /// </remarks> ! /// <typeparam name="T">The type of object returned from the callback.</typeparam> ! /// <param name="del">The delegate called with a IDbDataAdapter object.</param> ! /// <returns>A result object returned by the callback or null</returns> ! T Execute<T>(DataAdapterDelegate<T> del); #endregion --- NEW FILE: IDataAdapterCallback.cs --- (This appears to be a binary file; contents omitted.) Index: AdoTemplate.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Generic/AdoTemplate.cs,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** AdoTemplate.cs 30 Oct 2007 15:24:44 -0000 1.17 --- AdoTemplate.cs 4 Dec 2007 06:48:21 -0000 1.18 *************** *** 385,388 **** --- 385,398 ---- + /// <summary> + /// Executes ADO.NET operations on a command object, created by the provided IDbCommandCreator, + /// using the interface based callback IDbCommandCallback. + /// </summary> + /// <typeparam name="T">The type of object returned from the callback.</typeparam> + /// <param name="commandCreator">The command creator.</param> + /// <param name="action">The callback to execute based on IDbCommand</param> + /// <returns> + /// A result object returned by the action or null + /// </returns> public T Execute<T>(IDbCommandCreator commandCreator, IDbCommandCallback<T> action) { *************** *** 429,432 **** --- 439,530 ---- } + + /// <summary> + /// Execute ADO.NET operations on a IDbDataAdapter object using an interface based callback. + /// </summary> + /// <typeparam name="T">The type of object returned from the callback.</typeparam> + /// <param name="dataAdapterCallback">The data adapter callback.</param> + /// <returns> + /// A result object returned by the callback or null + /// </returns> + /// <remarks>This allows for implementing abritrary data access operations + /// on a single DataAdapter within Spring's managed ADO.NET environment. + /// </remarks> + public T Execute<T>(IDataAdapterCallback<T> dataAdapterCallback) + { + ConnectionTxPair connectionTxPairToUse = ConnectionUtils.GetConnectionTxPair(DbProvider); + IDbDataAdapter dataAdapter = null; + try + { + dataAdapter = DbProvider.CreateDataAdapter(); + //TODO row updated event handling... + dataAdapter.SelectCommand = DbProvider.CreateCommand(); + dataAdapter.SelectCommand.Connection = connectionTxPairToUse.Connection; + //TODO register for warnings on connection. + dataAdapter.SelectCommand.Transaction = connectionTxPairToUse.Transaction; + ApplyCommandSettings(dataAdapter.SelectCommand); + T result = dataAdapterCallback.DoInDataAdapter(dataAdapter); + return result; + } + catch (Exception) + { + AdoUtils.DisposeDataAdapterCommands(dataAdapter); + //TODO set dataAdapter command's = null; ? + //TODO exception translation? different hierarchy for data set operations. + ConnectionUtils.DisposeConnection(connectionTxPairToUse.Connection, DbProvider); + connectionTxPairToUse.Connection = null; + throw; + } + finally + { + AdoUtils.DisposeDataAdapterCommands(dataAdapter); + ConnectionUtils.DisposeConnection(connectionTxPairToUse.Connection, DbProvider); + } + + + } + + /// <summary> + /// Execute ADO.NET operations on a IDbDataAdapter object using an delgate based callback. + /// </summary> + /// <remarks>This allows for implementing abritrary data access operations + /// on a single DataAdapter within Spring's managed ADO.NET environment. + /// </remarks> + /// <typeparam name="T">The type of object returned from the callback.</typeparam> + /// <param name="dataAdapterCallback">The delegate called with a IDbDataAdapter object.</param> + /// <returns>A result object returned by the callback or null</returns> + public T Execute<T>(DataAdapterDelegate<T> dataAdapterCallback) + { + ConnectionTxPair connectionTxPairToUse = ConnectionUtils.GetConnectionTxPair(DbProvider); + IDbDataAdapter dataAdapter = null; + try + { + dataAdapter = DbProvider.CreateDataAdapter(); + //TODO row updated event handling... + dataAdapter.SelectCommand = DbProvider.CreateCommand(); + dataAdapter.SelectCommand.Connection = connectionTxPairToUse.Connection; + //TODO register for warnings on connection. + dataAdapter.SelectCommand.Transaction = connectionTxPairToUse.Transaction; + ApplyCommandSettings(dataAdapter.SelectCommand); + T result = dataAdapterCallback(dataAdapter); + return result; + + } + catch (Exception) + { + AdoUtils.DisposeDataAdapterCommands(dataAdapter); + //TODO set dataAdapter command's = null; ? + //TODO exception translation? different hierarchy for data set operations. + ConnectionUtils.DisposeConnection(connectionTxPairToUse.Connection, DbProvider); + connectionTxPairToUse.Connection = null; + throw; + } + finally + { + AdoUtils.DisposeDataAdapterCommands(dataAdapter); + ConnectionUtils.DisposeConnection(connectionTxPairToUse.Connection, DbProvider); + } + } + #endregion --- NEW FILE: DataAdapterDelegate.cs --- (This appears to be a binary file; contents omitted.) |
From: Bruno B. <bb...@us...> - 2007-12-03 23:31:44
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Proxy In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv3108 Modified Files: AbstractProxyTypeBuilderTests.cs Log Message: Problems with Attributes in proxy generation [SPRNET-606] Index: AbstractProxyTypeBuilderTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Proxy/AbstractProxyTypeBuilderTests.cs,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** AbstractProxyTypeBuilderTests.cs 3 Dec 2007 09:07:54 -0000 1.18 --- AbstractProxyTypeBuilderTests.cs 3 Dec 2007 23:31:38 -0000 1.19 *************** *** 22,25 **** --- 22,27 ---- using System; + using System.Net; + using System.Security.Permissions; using System.Reflection; using System.Reflection.Emit; *************** *** 209,212 **** --- 211,239 ---- } + // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=296032 + // should not fail + // Not fixed by .NET 2.0 SP1. + [Test] + public void ProxySpecificTargetTypeAttributeWithPublicEnumProperty() + { + IProxyTypeBuilder builder = GetProxyBuilder(); + builder.TargetType = typeof(ClassWithPublicEnumPropertyAttribute); + Type proxy = builder.BuildProxyType(); + Assert.IsNotNull(proxy, "The proxy generated by a (valid) call to BuildProxy() was null."); + MethodInfo method = proxy.GetMethod("Spring.Proxy.ISomeMarkerInterface.MarkerMethod", BindingFlags.NonPublic | BindingFlags.Instance); + if (method == null) + { + method = proxy.GetMethod("MarkerMethod"); + } + Assert.IsNotNull(method); + object[] attrs = method.GetCustomAttributes(false); + Assert.IsNotNull(attrs, "Should have 1 attribute applied to the target method."); + Assert.AreEqual(1, attrs.Length, "Should have 1 attribute applied to the target method."); + Assert.AreEqual(typeof(PublicEnumPropertyAttribute), attrs[0].GetType(), "Wrong System.Type of Attribute applied to the target method."); + + PublicEnumPropertyAttribute pepa = attrs[0] as PublicEnumPropertyAttribute; + Assert.AreEqual(AttributeTargets.All, pepa.Data); + } + // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=161522 // should not fail *************** *** 232,235 **** --- 259,332 ---- } + // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94803 + [Test] + [Ignore("http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94803")] + public void ProxySecurityAttribute() + { + IProxyTypeBuilder builder = GetProxyBuilder(); + builder.TargetType = typeof(ClassWithSecurityAttribute); + + Type proxy = builder.BuildProxyType(); + Assert.IsNotNull(proxy, "The proxy generated by a (valid) call to BuildProxy() was null."); + + object[] attrs = proxy.GetCustomAttributes(false); + Assert.IsNotNull(attrs, "Should have had 2 attribute applied to the target type."); + Assert.AreEqual(2, attrs.Length, "Should have had 2 attribute applied to the target type."); + Assert.AreEqual(typeof(WebPermissionAttribute), attrs[1].GetType(), "Wrong System.Type of Attribute applied to the target type."); + + WebPermissionAttribute wpa = attrs[0] as WebPermissionAttribute; + Assert.AreEqual(SecurityAction.Deny, wpa.Action); + } + + [Test] + public void ProxySpecificTargetTypeAttributeWithArrayConstructor() + { + IProxyTypeBuilder builder = GetProxyBuilder(); + builder.TargetType = typeof(ClassWithArrayConstructorAttribute); + Type proxy = builder.BuildProxyType(); + Assert.IsNotNull(proxy, "The proxy generated by a (valid) call to BuildProxy() was null."); + + MethodInfo method = proxy.GetMethod("Spring.Proxy.ISomeMarkerInterface.MarkerMethod", BindingFlags.NonPublic | BindingFlags.Instance); + if (method == null) + { + method = proxy.GetMethod("MarkerMethod"); + } + Assert.IsNotNull(method); + object[] attrs = method.GetCustomAttributes(false); + Assert.IsNotNull(attrs, "Should have 1 attribute applied to the target method."); + Assert.AreEqual(1, attrs.Length, "Should have 1 attribute applied to the target method."); + Assert.AreEqual(typeof(ArrayConstructorPropertyAttribute), attrs[0].GetType(), "Wrong System.Type of Attribute applied to the target method."); + + ArrayConstructorPropertyAttribute acpa = attrs[0] as ArrayConstructorPropertyAttribute; + Assert.AreEqual(false, acpa.ReadOnly); + Assert.AreEqual(1, acpa.Types.Length); + Assert.AreEqual(typeof(string), acpa.Types[0]); + } + + [Test] + public void ProxySpecificTargetTypeAttributeWithArrayProperty() + { + IProxyTypeBuilder builder = GetProxyBuilder(); + builder.TargetType = typeof(ClassWithArrayPropertyAttribute); + Type proxy = builder.BuildProxyType(); + Assert.IsNotNull(proxy, "The proxy generated by a (valid) call to BuildProxy() was null."); + + MethodInfo method = proxy.GetMethod("Spring.Proxy.IAnotherMarkerInterface.MarkerMethod", BindingFlags.NonPublic | BindingFlags.Instance); + if (method == null) + { + method = proxy.GetMethod("MarkerMethod"); + } + Assert.IsNotNull(method); + object[] attrs = method.GetCustomAttributes(false); + Assert.IsNotNull(attrs, "Should have 1 attribute applied to the target method."); + Assert.AreEqual(1, attrs.Length, "Should have 1 attribute applied to the target method."); + Assert.AreEqual(typeof(ArrayConstructorPropertyAttribute), attrs[0].GetType(), "Wrong System.Type of Attribute applied to the target method."); + + ArrayConstructorPropertyAttribute acpa = attrs[0] as ArrayConstructorPropertyAttribute; + Assert.AreEqual(true, acpa.ReadOnly); + Assert.AreEqual(2, acpa.Types.Length); + Assert.AreEqual(typeof(int), acpa.Types[0]); + Assert.AreEqual(typeof(string), acpa.Types[1]); + } [Test] *************** *** 637,640 **** --- 734,771 ---- } + // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=296032 + public class ClassWithPublicEnumPropertyAttribute : ISomeMarkerInterface + { + [PublicEnumProperty(AttributeTargets.All)] + public string MarkerMethod(int param1, string param2) + { + return null; + } + } + + // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=94803 + [Marker] + [WebPermission(SecurityAction.Deny)] + public class ClassWithSecurityAttribute : IMarkerInterface + { + } + + public class ClassWithArrayConstructorAttribute : ISomeMarkerInterface + { + [ArrayConstructorPropertyAttribute(false, new Type[1] { typeof(string) })] + public string MarkerMethod(int param1, string param2) + { + return null; + } + } + + public class ClassWithArrayPropertyAttribute : IAnotherMarkerInterface + { + [ArrayConstructorPropertyAttribute(ReadOnly = true, Types = new Type[2] { typeof(int), typeof(string) })] + public void MarkerMethod() + { + } + } + public class SomeMarkerClass : ISomeMarkerInterface { *************** *** 666,669 **** --- 797,848 ---- } + public class ArrayConstructorPropertyAttribute : Attribute + { + private bool _readOnly = false; + private Type[] _types = Type.EmptyTypes; + + public ArrayConstructorPropertyAttribute() + { + } + + public ArrayConstructorPropertyAttribute(bool readOnly, Type[] types) + { + this._readOnly = readOnly; + this._types = types; + } + + public bool ReadOnly + { + get { return _readOnly; } + set { _readOnly = value; } + } + + public Type[] Types + { + get { return _types; } + set { _types = value; } + } + } + + public class PublicEnumPropertyAttribute : Attribute + { + private Enum _data; + + public PublicEnumPropertyAttribute(AttributeTargets data) + { + _data = data; + } + + public PublicEnumPropertyAttribute(TypeCode data) + { + _data = data; + } + + public Enum Data + { + get { return _data; } + } + } + public sealed class MarkerAttribute : Attribute { |
From: Bruno B. <bb...@us...> - 2007-12-03 23:31:32
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Proxy In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv3066/Proxy Modified Files: AbstractProxyTypeBuilder.cs Log Message: Problems with Attributes in proxy generation [SPRNET-606] Index: AbstractProxyTypeBuilder.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Proxy/AbstractProxyTypeBuilder.cs,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** AbstractProxyTypeBuilder.cs 3 Dec 2007 09:07:18 -0000 1.30 --- AbstractProxyTypeBuilder.cs 3 Dec 2007 23:31:27 -0000 1.31 *************** *** 373,377 **** } } ! catch(CustomAttributeFormatException) { // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=161522 --- 373,382 ---- } } ! catch (ArgumentException) ! { ! // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=296032 ! attributes.AddRange(type.GetCustomAttributes(false)); ! } ! catch (CustomAttributeFormatException) { // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=161522 *************** *** 407,413 **** // add attributes that apply to the target method #if NET_2_0 ! foreach (CustomAttributeData cad in CustomAttributeData.GetCustomAttributes(method)) { ! attributes.Add(cad); } #else --- 412,426 ---- // add attributes that apply to the target method #if NET_2_0 ! try { ! foreach (CustomAttributeData cad in CustomAttributeData.GetCustomAttributes(method)) ! { ! attributes.Add(cad); ! } ! } ! catch (ArgumentException) ! { ! // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=296032 ! attributes.AddRange(method.GetCustomAttributes(false)); } #else *************** *** 452,458 **** { // add attributes that apply to the target method' return type ! foreach (CustomAttributeData cad in CustomAttributeData.GetCustomAttributes(method.ReturnParameter)) { ! attributes.Add(cad); } } --- 465,479 ---- { // add attributes that apply to the target method' return type ! try { ! foreach (CustomAttributeData cad in CustomAttributeData.GetCustomAttributes(method.ReturnParameter)) ! { ! attributes.Add(cad); ! } ! } ! catch (ArgumentException) ! { ! // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=296032 ! attributes.AddRange(method.ReturnTypeCustomAttributes.GetCustomAttributes(false)); } } *************** *** 482,488 **** // add attributes that apply to the target method's parameter #if NET_2_0 ! foreach (CustomAttributeData cad in CustomAttributeData.GetCustomAttributes(paramInfo)) { ! attributes.Add(cad); } #else --- 503,517 ---- // add attributes that apply to the target method's parameter #if NET_2_0 ! try { ! foreach (CustomAttributeData cad in CustomAttributeData.GetCustomAttributes(paramInfo)) ! { ! attributes.Add(cad); ! } ! } ! catch (ArgumentException) ! { ! // http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=296032 ! attributes.AddRange(paramInfo.GetCustomAttributes(false)); } #else |
From: Bruno B. <bb...@us...> - 2007-12-03 23:31:32
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Util In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv3066/Util Modified Files: ReflectionUtils.cs Log Message: Problems with Attributes in proxy generation [SPRNET-606] Index: ReflectionUtils.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Util/ReflectionUtils.cs,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** ReflectionUtils.cs 3 Dec 2007 09:07:18 -0000 1.53 --- ReflectionUtils.cs 3 Dec 2007 23:31:28 -0000 1.54 *************** *** 730,733 **** --- 730,734 ---- IList getSetValues = new ArrayList(); IList readOnlyProps = new ArrayList(); + IList readOnlyValues = new ArrayList(); foreach (PropertyInfo pi in type.GetProperties(BindingFlags.Instance | BindingFlags.Public)) { *************** *** 753,756 **** --- 754,758 ---- { readOnlyProps.Add(pi); + readOnlyValues.Add(pi.GetValue(sourceAttribute, null)); } } *************** *** 761,769 **** PropertyInfo pi = readOnlyProps[0] as PropertyInfo; ConstructorInfo ciTemp = type.GetConstructor(new Type[1] {pi.PropertyType}); ! if (ciTemp != null) ! { ! ci = ciTemp; ! ctorArgs = new object[1] {pi.GetValue(sourceAttribute, null)}; ! } } --- 763,780 ---- PropertyInfo pi = readOnlyProps[0] as PropertyInfo; ConstructorInfo ciTemp = type.GetConstructor(new Type[1] {pi.PropertyType}); ! if (ciTemp != null) ! { ! ci = ciTemp; ! ctorArgs = new object[1] { readOnlyValues[0] }; ! } ! else ! { ! ciTemp = type.GetConstructor(new Type[1] { readOnlyValues[0].GetType() }); ! if (ciTemp != null) ! { ! ci = ciTemp; ! ctorArgs = new object[1] { readOnlyValues[0] }; ! } ! } } *************** *** 862,866 **** { parameterTypes[i] = attributeData.ConstructorArguments[i].ArgumentType; ! parameterValues[i] = attributeData.ConstructorArguments[i].Value; } --- 873,877 ---- { parameterTypes[i] = attributeData.ConstructorArguments[i].ArgumentType; ! parameterValues[i] = ConvertValueIfNecessary(attributeData.ConstructorArguments[i].Value); } *************** *** 868,871 **** --- 879,883 ---- PropertyInfo[] attributeProperties = attributeType.GetProperties( BindingFlags.Instance | BindingFlags.Public); + // Not using generics bellow as probably Spring.NET tries to keep // it on .NET1 compatibility level right now I believe (SD) *************** *** 885,889 **** { propertiesToSet.Add(attributeProperties[j]); ! namedParameterValues[k++] = ResolveValues(namedArgument.TypedValue.Value); break; } --- 897,901 ---- { propertiesToSet.Add(attributeProperties[j]); ! namedParameterValues[k++] = ConvertValueIfNecessary(namedArgument.TypedValue.Value); break; } *************** *** 903,907 **** } } - // Get constructor corresponding to the parameters and their types ConstructorInfo constructor = attributeType.GetConstructor(parameterTypes); --- 915,918 ---- *************** *** 914,918 **** } ! private static object ResolveValues(object value) { if (value == null) return value; --- 925,929 ---- } ! private static object ConvertValueIfNecessary(object value) { if (value == null) return value; *************** *** 925,943 **** Type underlyingType = null; // type to be used for arguments ! Type listType = null; ! object list = null; ! List<int> prototypeList = new List<int>(); ! ! foreach (CustomAttributeTypedArgument typedArgument in sourceArray) { if (underlyingType == null) { ! underlyingType = typedArgument.ArgumentType; ! ! listType = Type.GetType( ! "System.Collections.Generic.List`1[[" + underlyingType.AssemblyQualifiedName + "]], " + prototypeList.GetType().Assembly.FullName, true, false); ! list = Activator.CreateInstance(listType); } ! if (!underlyingType.Equals(typedArgument.ArgumentType)) { throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, --- 936,948 ---- Type underlyingType = null; // type to be used for arguments ! Array returnArray = null; ! for (int i = 0; i < sourceArray.Count; i++) { if (underlyingType == null) { ! underlyingType = sourceArray[i].ArgumentType; ! returnArray = Array.CreateInstance(underlyingType, sourceArray.Count); } ! if (!underlyingType.Equals(sourceArray[i].ArgumentType)) { throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, *************** *** 945,956 **** } ! MethodInfo addMethod = listType.GetMethod("Add"); ! object[] addMethodParameters = new object[1]; ! addMethodParameters[0] = typedArgument.Value; ! addMethod.Invoke(list, addMethodParameters); } ! MethodInfo toArrayMethod = listType.GetMethod("ToArray"); ! return toArrayMethod.Invoke(list, new object[] { }); } #endif --- 950,958 ---- } ! returnArray.SetValue(sourceArray[i].Value, i); } ! return returnArray; ! } #endif |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:49
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Data/Spring/Web/Support/PageHandlerFactoryTests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/test/Spring/Spring.Web.Tests/Data/Spring/Web/Support/PageHandlerFactoryTests Added Files: DisablesSession.aspx MaintainsSession1.aspx MaintainsSession2.aspx TransferAfterSetResult.aspx TransferAfterSetResultSave.aspx Web.Config.net-1.1 Web.Config.net-2.0 Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) --- NEW FILE: Web.Config.net-2.0 --- <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="spring"> <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/> <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/> </sectionGroup> <sectionGroup name="common"> <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" /> </sectionGroup> </configSections> <!-- to see logging output in the attached debugger --> <common> <logging> <factoryAdapter type="Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging"> <arg key="Level" value="ALL" /> </factoryAdapter> </logging> </common> <system.web> <compilation debug="true" /> <!-- The following needs to be configured in order to enable Spring.NET Web Framework features --> <httpModules> <add name="SpringModule" type="Spring.Context.Support.WebSupportModule, Spring.Web"/> <add name="NUnitAspExModule" type="NUnitAspEx.AspTestExecutionModule, NUnitAspEx" /> </httpModules> <httpHandlers> <add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/> <add verb="*" path="*.testmethod" type="NUnitAspEx.AspTestMethodHandler, NUnitAspEx" validate="false" /> </httpHandlers> </system.web> <!-- demonstrates how to configure IHttpModule instances --> <spring> <context> <resource uri="config://spring/objects"/> </context> <objects xmlns="http://www.springframework.net"> <object type="TransferAfterSetResult.aspx"> <property name="Results"> <dictionary> <entry key="save" value="transfer:TransferAfterSetResultSave.aspx" /> </dictionary> </property> </object> <object type="TransferAfterSetResultSave.aspx"/> </objects> </spring> </configuration> --- NEW FILE: MaintainsSession1.aspx --- <%@ Page language="c#" AutoEventWireup="false" Inherits="Spring.Web.UI.Page" %><script language="c#" runat="server"> protected override void OnLoad(EventArgs e) { base.OnLoad(e); Session["maintainsSession"] = "somevalue"; } </script>OK --- NEW FILE: MaintainsSession2.aspx --- <%@ Page language="c#" AutoEventWireup="false" Inherits="Spring.Web.UI.Page" %><script language="c#" runat="server"> protected override void OnLoad(EventArgs e) { base.OnLoad(e); NUnit.Framework.Assert.AreEqual( "somevalue", Session["maintainsSession"] ); } </script>OK --- NEW FILE: TransferAfterSetResultSave.aspx --- <%@ Page language="c#" AutoEventWireup="false" EnableViewStateMac="false" Inherits="Spring.Web.UI.Page" %> <%@ Reference Page="TransferAfterSetResult.aspx" %> <script language="c#" runat="server"> protected override void OnLoad(EventArgs e) { base.OnLoad(e); NUnit.Framework.Assert.AreEqual( typeof(TransferAfterSetResult), this.PreviousPage.GetType() ); } </script>OK --- NEW FILE: Web.Config.net-1.1 --- <?xml version="1.0"?> <configuration> <configSections> <sectionGroup name="spring"> <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/> <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core"/> </sectionGroup> <sectionGroup name="common"> <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" /> </sectionGroup> </configSections> <!-- to see logging output in the attached debugger --> <common> <logging> <factoryAdapter type="Common.Logging.Simple.TraceLoggerFactoryAdapter, Common.Logging"> <arg key="Level" value="ALL" /> </factoryAdapter> </logging> </common> <system.web> <compilation debug="true" /> <!-- The following needs to be configured in order to enable Spring.NET Web Framework features --> <httpModules> <add name="SpringModule" type="Spring.Context.Support.WebSupportModule, Spring.Web"/> <add name="NUnitAspExModule" type="NUnitAspEx.AspTestExecutionModule, NUnitAspEx" /> </httpModules> <httpHandlers> <add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/> <add verb="*" path="*.testmethod" type="NUnitAspEx.AspTestMethodHandler, NUnitAspEx" validate="false" /> </httpHandlers> </system.web> <!-- demonstrates how to configure IHttpModule instances --> <spring> <context> <resource uri="config://spring/objects"/> </context> <objects xmlns="http://www.springframework.net"> <!-- "PreviousPage" property does not exist in net-1.1 <object type="TransferAfterSetResult.aspx"> <property name="Results"> <dictionary> <entry key="save" value="transfer:TransferAfterSetResultSave.aspx" /> </dictionary> </property> </object> <object type="TransferAfterSetResultSave.aspx"/> --> </objects> </spring> </configuration> --- NEW FILE: DisablesSession.aspx --- <%@ Page language="c#" EnableSessionState="false" AutoEventWireup="false" Inherits="Spring.Web.UI.Page" %><script language="c#" runat="server"> protected override void OnLoad(EventArgs e) { base.OnLoad(e); try { Session["disablesSession"] = "somevalue"; NUnit.Framework.Assert.Fail("must not be able to access session"); } catch(HttpException) {} } </script>OK --- NEW FILE: TransferAfterSetResult.aspx --- <%@ Page language="c#" AutoEventWireup="false" Inherits="Spring.Web.UI.Page" ClassName="TransferAfterSetResult" %> <script language="c#" runat="server"> private void Save_Clicked(object sender, EventArgs e) { SetResult("save"); } </script> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>GuestBook</title> </HEAD> <body> <form id="GuestBook" method="post" runat="server"> <p><b>Guest Book:</b></p> <u>Enter your name:</u> <table> <tr><td>Name:</td><td><asp:textbox id="name" Runat="server"></asp:textbox></td></tr> </table> <asp:Button ID="save" Runat="server" Text="Save" OnClick="Save_Clicked"></asp:Button> </form> </body> </HTML> |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:45
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Web/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/test/Spring/Spring.Web.Tests/Web/Support Added Files: PageHandlerFactoryTests.cs Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) --- NEW FILE: PageHandlerFactoryTests.cs --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:40
|
Update of /cvsroot/springnet/Spring.Net/lib/Net/2.0 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/lib/Net/2.0 Added Files: NUnitAsp.dll NUnitAspEx.dll NUnitAspEx.pdb NUnitAspEx.xml nunit.core.dll nunit.core.interfaces.dll Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) --- NEW FILE: NUnitAspEx.xml --- <?xml version="1.0"?> <doc> <assembly> <name>NUnitAspEx</name> </assembly> <members> <member name="T:NUnitAspEx.Client.AspFixtureRequest"> <summary> Encapsulates a request from within a testsuite marked as <see cref="T:NUnitAspEx.AspTestFixtureAttribute"/> using the "asptest://" pseudo-protocol. </summary> </member> <member name="T:NUnitAspEx.Client.CustomizableHttpWebRequest"> <summary> Encapsulates the ugly details of deriving from HttpWebRequest. </summary> <remarks> Since various frameworks like NUnitAsp rely on the output of WebRequest.Create() being of type HttpWebRequest but HttpWebRequest is not customizable the easy way, this class shields further derived classes from the ugly reflection details. </remarks> </member> <member name="M:NUnitAspEx.Client.CustomizableHttpWebRequest.#ctor(System.Uri)"> <summary> Creates a new instance for the given uri. </summary> <param name="uri">the <see cref="P:NUnitAspEx.Client.CustomizableHttpWebRequest.Uri"/> to create this request for.</param> </member> <member name="M:NUnitAspEx.Client.CustomizableHttpWebRequest.CreateHttpWebRequestSerializationInfo(System.Uri)"> <summary> </summary> <param name="uri"></param> <returns></returns> </member> <member name="M:NUnitAspEx.Client.CustomizableHttpWebRequest.SubmitRequest(System.Byte[],System.IO.Stream)"> <summary> Override this method in your derived class and call <see cref="M:NUnitAspEx.Client.CustomizableHttpWebRequest.SetResponse(System.Net.HttpWebResponse)"/> to set the response object. </summary> </member> <member name="M:NUnitAspEx.Client.CustomizableHttpWebRequest.CreateOutputStream"> <summary> Create the stream to be used for uploading content. </summary> <returns></returns> </member> <member name="T:NUnitAspEx.Client.AspFixtureResponse"> <summary> Encapsulates a response from an <see cref="T:NUnitAspEx.Client.AspFixtureRequest"/>. </summary> </member> <member name="T:NUnitAspEx.Client.CustomizableHttpWebResponse"> <summary> Encapsulates the ugly details of deriving from HttpWebResponse. </summary> </member> <member name="T:NUnitAspEx.Client.HttpReflectionUtils"> <summary> Summary description for HttpReflectionUtils. </summary> </member> <member name="T:NUnitAspEx.Client.HttpWebClient"> <summary> Summary description for HttpWebClient. </summary> </member> <member name="T:NUnitAspEx.Core.AspFixtureHost"> <summary> An AspFixtureHost lives inside it's own AppDomain with an initialized HttpRuntime. </summary> </member> <member name="T:NUnitAspEx.IAspFixtureHost"> <summary> Summary description for IAspFixtureHost. </summary> </member> <member name="M:NUnitAspEx.Core.AspFixtureHost.CreateInstance(NUnitAspEx.AspTestFixtureAttribute,System.String)"> <summary> Creates a new Host instance within a new AppDomain based on the Properties of the passed <see cref="T:NUnitAspEx.AspTestFixtureAttribute"/>. </summary> <remarks> You must not call this method from within an existing Host's AppDomain. </remarks> </member> <member name="M:NUnitAspEx.Core.AspFixtureHost.ShutDown(NUnitAspEx.Core.AspFixtureHost)"> <summary> Unload the passed Host's AppDomain. </summary> </member> <member name="M:NUnitAspEx.Core.AspFixtureHost.InitializeLifetimeService"> <summary> Return null to avoid timing out of remoting references </summary> <returns></returns> </member> <member name="M:NUnitAspEx.Core.AspFixtureHost.Initialize(System.String,System.AppDomain,System.IO.TextWriter,System.String[])"> <summary> Initializes the newly created host instance. </summary> </member> <member name="M:NUnitAspEx.Core.AspFixtureHost.CreateAndExecuteTestSuite(System.Type,NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)"> <summary> Creates a new TestSuite using the passed <c>fixtureType</c> and executes it immediately </summary> <remarks> This method is called by <see cref="M:NUnitAspEx.Core.AspTestFixture.Run(NUnit.Core.EventListener,NUnit.Core.ITestFilter)"/> </remarks> </member> <member name="P:NUnitAspEx.Core.AspFixtureHost.Current"> <summary> Use this property to gain access to the Host from within the Host's AppDomain </summary> <remarks> This property is set only within the Host's AppDomain. Outside the AppDomain it will always return null. </remarks> </member> <member name="P:NUnitAspEx.Core.AspFixtureHost.SyncRoot"> <summary> Use to synchronize access to this host instance </summary> </member> <member name="P:NUnitAspEx.Core.AspFixtureHost.CreatorDomain"> <summary> Returns a reference to the AppDomain, that created this Host instance </summary> </member> <member name="P:NUnitAspEx.Core.AspFixtureHost.RootLocation"> <summary> Returns the physical assembly reference location this AppDomain has been created from. </summary> </member> <member name="M:NUnitAspEx.Core.AspTestFixture.Run(NUnit.Core.EventListener,NUnit.Core.ITestFilter)"> <summary> Create the ASP.NET AppDomain and executes the fixture there. </summary> </member> <member name="M:NUnitAspEx.Core.AspTestFixture.RunWithinHost(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)"> <summary> Create the ASP.NET AppDomain and executes the fixture there. </summary> </member> <member name="T:NUnitAspEx.Core.AspTestFixtureBuilder"> <summary> AspTestFixtureBuilder knows how to build an [AspTestFixture] </summary> </member> <member name="T:NUnitAspEx.Core.AspTestMethod"> <summary> Summary description for AspTestMethod. </summary> </member> <member name="M:NUnitAspEx.Core.AspTestMethod.DoRunFromWithinWorkerRequest"> <summary> "Callback" from within an executing HttpWorkerRequest </summary> </member> <member name="T:NUnitAspEx.Core.LongLivingMarshalByRefObject"> <summary> class LongLivingMarshalByRefObject </summary> <author>Erich Eichinger</author> <created>02.12.2007 00:47:53</created> <version>$Id: NUnitAspEx.xml,v 1.1 2007/12/03 16:11:32 oakinger Exp $</version> </member> <member name="T:NUnitAspEx.Core.RemotableEventListenerProxy"> <summary> Wraps a local EventListener to be able to pass events across AppDomains. </summary> <remarks> Suppresses the call to SuiteStarted/SuiteFinished. These calls must *not* occur from within a remote AppDomain! </remarks> </member> <member name="T:NUnitAspEx.AspTestAttribute"> <summary> Summary description for AspTestAttribute. </summary> </member> <member name="T:NUnitAspEx.AspTestClient"> <summary> Summary description for AspTestClient. </summary> </member> <member name="T:NUnitAspEx.AspTestContext"> <summary> Summary description for AspTestContext. </summary> </member> <member name="T:NUnitAspEx.AspTestExecutionModule"> <summary> Summary description for AspTestExecutionModule. </summary> </member> <member name="T:NUnitAspEx.AspTestFixtureAttribute"> <summary> AspTestFixtureAttribute is used to identify a AspTestFixture class </summary> </member> <member name="T:NUnitAspEx.AspTestMethodHandler"> <summary> Executes current TestMethod during ProcessRequest(), if any </summary> </member> <member name="T:NUnitAspEx.NUnitAddinHelper"> <summary> You MUST implement 1 class per assembly containing an AspTestFixture that derives from this helper class and mark it using NUnitAddinAttribute (from nunit.core.interfaces assembly). </summary> <example> [NUnit.Core.Extensibility.NUnitAddin] public class MyNUnitAddinHelper : NUnitAddinHelper {} </example> </member> </members> </doc> --- NEW FILE: NUnitAspEx.pdb --- (This appears to be a binary file; contents omitted.) --- NEW FILE: NUnitAsp.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.core.interfaces.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.core.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: NUnitAspEx.dll --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:39
|
Update of /cvsroot/springnet/Spring.Net/lib/Net/1.1 In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/lib/Net/1.1 Added Files: NUnitAsp.dll NUnitAspEx.dll NUnitAspEx.pdb NUnitAspEx.xml nunit.core.dll nunit.core.interfaces.dll Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) --- NEW FILE: NUnitAspEx.xml --- <?xml version="1.0"?> <doc> <assembly> <name>NUnitAspEx</name> </assembly> <members> <member name="T:NUnitAspEx.Client.AspFixtureRequest"> <summary> Encapsulates a request from within a testsuite marked as <see cref="T:NUnitAspEx.AspTestFixtureAttribute"/> using the "asptest://" pseudo-protocol. </summary> </member> <member name="T:NUnitAspEx.Client.CustomizableHttpWebRequest"> <summary> Encapsulates the ugly details of deriving from HttpWebRequest. </summary> <remarks> Since various frameworks like NUnitAsp rely on the output of WebRequest.Create() being of type HttpWebRequest but HttpWebRequest is not customizable the easy way, this class shields further derived classes from the ugly reflection details. </remarks> </member> <member name="M:NUnitAspEx.Client.CustomizableHttpWebRequest.#ctor(System.Uri)"> <summary> Creates a new instance for the given uri. </summary> <param name="uri">the <see cref="P:NUnitAspEx.Client.CustomizableHttpWebRequest.Uri"/> to create this request for.</param> </member> <member name="M:NUnitAspEx.Client.CustomizableHttpWebRequest.CreateHttpWebRequestSerializationInfo(System.Uri)"> <summary> </summary> <param name="uri"></param> <returns></returns> </member> <member name="M:NUnitAspEx.Client.CustomizableHttpWebRequest.SubmitRequest(System.Byte[],System.IO.Stream)"> <summary> Override this method in your derived class and call <see cref="M:NUnitAspEx.Client.CustomizableHttpWebRequest.SetResponse(System.Net.HttpWebResponse)"/> to set the response object. </summary> </member> <member name="M:NUnitAspEx.Client.CustomizableHttpWebRequest.CreateOutputStream"> <summary> Create the stream to be used for uploading content. </summary> <returns></returns> </member> <member name="T:NUnitAspEx.Client.AspFixtureResponse"> <summary> Encapsulates a response from an <see cref="T:NUnitAspEx.Client.AspFixtureRequest"/>. </summary> </member> <member name="T:NUnitAspEx.Client.CustomizableHttpWebResponse"> <summary> Encapsulates the ugly details of deriving from HttpWebResponse. </summary> </member> <member name="T:NUnitAspEx.Client.HttpReflectionUtils"> <summary> Summary description for HttpReflectionUtils. </summary> </member> <member name="T:NUnitAspEx.Client.HttpWebClient"> <summary> Summary description for HttpWebClient. </summary> </member> <member name="T:NUnitAspEx.Core.AspFixtureHost"> <summary> An AspFixtureHost lives inside it's own AppDomain with an initialized HttpRuntime. </summary> </member> <member name="T:NUnitAspEx.IAspFixtureHost"> <summary> Summary description for IAspFixtureHost. </summary> </member> <member name="M:NUnitAspEx.Core.AspFixtureHost.CreateInstance(NUnitAspEx.AspTestFixtureAttribute,System.String)"> <summary> Creates a new Host instance within a new AppDomain based on the Properties of the passed <see cref="T:NUnitAspEx.AspTestFixtureAttribute"/>. </summary> <remarks> You must not call this method from within an existing Host's AppDomain. </remarks> </member> <member name="M:NUnitAspEx.Core.AspFixtureHost.ShutDown(NUnitAspEx.Core.AspFixtureHost)"> <summary> Unload the passed Host's AppDomain. </summary> </member> <member name="M:NUnitAspEx.Core.AspFixtureHost.InitializeLifetimeService"> <summary> Return null to avoid timing out of remoting references </summary> <returns></returns> </member> <member name="M:NUnitAspEx.Core.AspFixtureHost.Initialize(System.String,System.AppDomain,System.IO.TextWriter,System.String[])"> <summary> Initializes the newly created host instance. </summary> </member> <member name="M:NUnitAspEx.Core.AspFixtureHost.CreateAndExecuteTestSuite(System.Type,NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)"> <summary> Creates a new TestSuite using the passed <c>fixtureType</c> and executes it immediately </summary> <remarks> This method is called by <see cref="M:NUnitAspEx.Core.AspTestFixture.Run(NUnit.Core.EventListener,NUnit.Core.ITestFilter)"/> </remarks> </member> <member name="P:NUnitAspEx.Core.AspFixtureHost.Current"> <summary> Use this property to gain access to the Host from within the Host's AppDomain </summary> <remarks> This property is set only within the Host's AppDomain. Outside the AppDomain it will always return null. </remarks> </member> <member name="P:NUnitAspEx.Core.AspFixtureHost.SyncRoot"> <summary> Use to synchronize access to this host instance </summary> </member> <member name="P:NUnitAspEx.Core.AspFixtureHost.CreatorDomain"> <summary> Returns a reference to the AppDomain, that created this Host instance </summary> </member> <member name="P:NUnitAspEx.Core.AspFixtureHost.RootLocation"> <summary> Returns the physical assembly reference location this AppDomain has been created from. </summary> </member> <member name="M:NUnitAspEx.Core.AspTestFixture.Run(NUnit.Core.EventListener,NUnit.Core.ITestFilter)"> <summary> Create the ASP.NET AppDomain and executes the fixture there. </summary> </member> <member name="M:NUnitAspEx.Core.AspTestFixture.RunWithinHost(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)"> <summary> Create the ASP.NET AppDomain and executes the fixture there. </summary> </member> <member name="T:NUnitAspEx.Core.AspTestFixtureBuilder"> <summary> AspTestFixtureBuilder knows how to build an [AspTestFixture] </summary> </member> <member name="T:NUnitAspEx.Core.AspTestMethod"> <summary> Summary description for AspTestMethod. </summary> </member> <member name="M:NUnitAspEx.Core.AspTestMethod.DoRunFromWithinWorkerRequest"> <summary> "Callback" from within an executing HttpWorkerRequest </summary> </member> <member name="T:NUnitAspEx.Core.LongLivingMarshalByRefObject"> <summary> class LongLivingMarshalByRefObject </summary> <author>Erich Eichinger</author> <created>02.12.2007 00:47:53</created> <version>$Id: NUnitAspEx.xml,v 1.1 2007/12/03 16:11:31 oakinger Exp $</version> </member> <member name="T:NUnitAspEx.Core.RemotableEventListenerProxy"> <summary> Wraps a local EventListener to be able to pass events across AppDomains. </summary> <remarks> Suppresses the call to SuiteStarted/SuiteFinished. These calls must *not* occur from within a remote AppDomain! </remarks> </member> <member name="T:NUnitAspEx.AspTestAttribute"> <summary> Summary description for AspTestAttribute. </summary> </member> <member name="T:NUnitAspEx.AspTestClient"> <summary> Summary description for AspTestClient. </summary> </member> <member name="T:NUnitAspEx.AspTestContext"> <summary> Summary description for AspTestContext. </summary> </member> <member name="T:NUnitAspEx.AspTestExecutionModule"> <summary> Summary description for AspTestExecutionModule. </summary> </member> <member name="T:NUnitAspEx.AspTestFixtureAttribute"> <summary> AspTestFixtureAttribute is used to identify a AspTestFixture class </summary> </member> <member name="T:NUnitAspEx.AspTestMethodHandler"> <summary> Executes current TestMethod during ProcessRequest(), if any </summary> </member> <member name="T:NUnitAspEx.NUnitAddinHelper"> <summary> You MUST implement 1 class per assembly containing an AspTestFixture that derives from this helper class and mark it using NUnitAddinAttribute (from nunit.core.interfaces assembly). </summary> <example> [NUnit.Core.Extensibility.NUnitAddin] public class MyNUnitAddinHelper : NUnitAddinHelper {} </example> </member> </members> </doc> --- NEW FILE: NUnitAspEx.pdb --- (This appears to be a binary file; contents omitted.) --- NEW FILE: NUnitAsp.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.core.interfaces.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nunit.core.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: NUnitAspEx.dll --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:39
|
Update of /cvsroot/springnet/Spring.Net In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425 Modified Files: Spring.build Spring.include Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) Index: Spring.build =================================================================== RCS file: /cvsroot/springnet/Spring.Net/Spring.build,v retrieving revision 1.190 retrieving revision 1.191 diff -C2 -d -r1.190 -r1.191 *** Spring.build 13 Nov 2007 03:44:48 -0000 1.190 --- Spring.build 3 Dec 2007 16:11:30 -0000 1.191 *************** *** 161,165 **** <property name="current.package.dir" value="${package.dir}/${project::get-name()}"/> ! <!-- for docs packaging MLP <property name="current.package.dir" value="L:/projects/Spring.Net/build/package-docs/${project::get-name()}"/> --> --- 161,165 ---- <property name="current.package.dir" value="${package.dir}/${project::get-name()}"/> ! <!-- for docs packaging MLP <property name="current.package.dir" value="L:/projects/Spring.Net/build/package-docs/${project::get-name()}"/> --> *************** *** 313,317 **** <!-- build examples --> ! <nant buildfile="examples/Spring/Spring.Examples.build" target="build" if="${build-examples and not using-clover}"/> <!-- build sandbox --> --- 313,317 ---- <!-- build examples --> ! <nant buildfile="examples/Spring/Spring.Examples.build" target="build" if="${build-examples and not using-clover}"/> <!-- build sandbox --> *************** *** 323,331 **** <nant buildfile="test/Spring/Spring.Data.Tests/Spring.Data.Tests.build" target="test" if="${build-data}"/> <nant buildfile="test/Spring/Spring.Data.Integration.Tests/Spring.Data.Integration.Tests.build" target="test" if="${build-data}"/> - <nant buildfile="test/Spring/Spring.Data.NHibernate.Tests/Spring.Data.NHibernate.Tests.build" target="test" if="${build-data and (nant.settings.currentframework == 'net-1.1' or nant.settings.currentframework == 'net-2.0')}"/> <nant buildfile="test/Spring/Spring.Data.NHibernate.Integration.Tests/Spring.Data.NHibernate.Integration.Tests.build" target="test" if="${build-data and (nant.settings.currentframework == 'net-1.1' or nant.settings.currentframework == 'net-2.0')}"/> - - <nant buildfile="test/Spring/Spring.Services.Tests/Spring.Services.Tests.build" target="test" if="${build-services}"/> <nant buildfile="test/Spring/Spring.Web.Tests/Spring.Web.Tests.build" target="test" if="${build-web}"/> --- 323,328 ---- *************** *** 423,426 **** --- 420,424 ---- <include name="*.dll"/> <include name="*.xml"/> + <exclude name="nunit.core.*" /> </fileset> </copy> *************** *** 1283,1287 **** <call target="test"/> </target> ! <target name="CloverReport" depends="CloverInit"> <clover-report> <current title="${project.name} Code Coverage" output="report"> --- 1281,1285 ---- <call target="test"/> </target> ! <target name="CloverReport" depends="CloverInit"> <clover-report> <current title="${project.name} Code Coverage" output="report"> Index: Spring.include =================================================================== RCS file: /cvsroot/springnet/Spring.Net/Spring.include,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Spring.include 14 May 2007 23:18:01 -0000 1.8 --- Spring.include 3 Dec 2007 16:11:30 -0000 1.9 *************** *** 157,161 **** <property name="nowarn.numbers" value="0618"/> <!-- use a different set of warnings for building the tests --> ! <property name="nowarn.numbers.test" value="1591,0618,0067"/> <if test="${not target::exists('set-' + current.build.config + '-build-configuration')}"> <fail message="The ${current.build.config} build configuration is not supported by ${project.name}."/> --- 157,162 ---- <property name="nowarn.numbers" value="0618"/> <!-- use a different set of warnings for building the tests --> ! <!-- TODO: "nowarn.numbers.test.default" should be "current.nowarn.numbers.test" --> ! <property name="nowarn.numbers.test.default" value="1591,0618,0067"/> <if test="${not target::exists('set-' + current.build.config + '-build-configuration')}"> <fail message="The ${current.build.config} build configuration is not supported by ${project.name}."/> *************** *** 165,169 **** <target name="set-debug-build-configuration"> <property name="compiler.args" value=""/> ! <property name="net-2.0" value="false"/> <property name="build.debug" value="true"/> <property name="build.defines.csc" value="DEBUG,TRACE"/> --- 166,170 ---- <target name="set-debug-build-configuration"> <property name="compiler.args" value=""/> ! <property name="net-2.0" value="false"/> <property name="build.debug" value="true"/> <property name="build.defines.csc" value="DEBUG,TRACE"/> *************** *** 178,182 **** <target name="set-release-build-configuration"> <property name="compiler.args" value=""/> ! <property name="net-2.0" value="false"/> <property name="build.debug" value="false"/> <property name="build.defines.csc" value="TRACE,STRONG"/> --- 179,183 ---- <target name="set-release-build-configuration"> <property name="compiler.args" value=""/> ! <property name="net-2.0" value="false"/> <property name="build.debug" value="false"/> <property name="build.defines.csc" value="TRACE,STRONG"/> *************** *** 215,218 **** --- 216,220 ---- <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> <property name="link.sdkdoc.version" value="SDK_v1_0"/> + <property name="nowarn.numbers.test" value="${nowarn.numbers.test.default}"/> </target> <target name="set-net-1.1-runtime-configuration" *************** *** 231,239 **** <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> <property name="link.sdkdoc.version" value="SDK_v1_1"/> </target> <target name="set-net-2.0-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines"> <property name="nant.settings.currentframework" value="net-2.0"/> ! <property name="net-2.0" value="true"/> <property name="current.build.debug" value="${build.debug}" dynamic="true"/> <property name="current.build.defines.csc" value="${build.defines.csc},NET,NET_2_0" dynamic="true"/> --- 233,242 ---- <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> <property name="link.sdkdoc.version" value="SDK_v1_1"/> + <property name="nowarn.numbers.test" value="${nowarn.numbers.test.default}"/> </target> <target name="set-net-2.0-runtime-configuration" depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines"> <property name="nant.settings.currentframework" value="net-2.0"/> ! <property name="net-2.0" value="true"/> <property name="current.build.debug" value="${build.debug}" dynamic="true"/> <property name="current.build.defines.csc" value="${build.defines.csc},NET,NET_2_0" dynamic="true"/> *************** *** 247,251 **** value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}"/> <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> ! </target> <target name="set-netcf-1.0-runtime-configuration" --- 250,254 ---- value="${sdkdoc.dir}/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}"/> <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> ! <property name="nowarn.numbers.test" value="${nowarn.numbers.test.default},1701"/> </target> <target name="set-netcf-1.0-runtime-configuration" *************** *** 264,267 **** --- 267,271 ---- <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> <property name="link.sdkdoc.version" value="SDK_v1_1"/> + <property name="nowarn.numbers.test" value="${nowarn.numbers.test.default}"/> </target> <target name="set-mono-1.0-runtime-configuration" *************** *** 280,283 **** --- 284,288 ---- <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> <property name="link.sdkdoc.version" value="MsdnOnline"/> + <property name="nowarn.numbers.test" value="${nowarn.numbers.test.default}"/> </target> <target name="set-mono-2.0-runtime-configuration" *************** *** 296,300 **** <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> <property name="link.sdkdoc.version" value="MsdnOnline"/> ! <property name="nowarn.numbers.test" value="${nowarn.numbers.test},0414"/> </target> <target name="set-sscli-1.0-runtime-configuration" --- 301,305 ---- <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> <property name="link.sdkdoc.version" value="MsdnOnline"/> ! <property name="nowarn.numbers.test" value="${nowarn.numbers.test.default},0414"/> </target> <target name="set-sscli-1.0-runtime-configuration" *************** *** 314,317 **** --- 319,323 ---- <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> <property name="link.sdkdoc.version" value="MsdnOnline"/> + <property name="nowarn.numbers.test" value="${nowarn.numbers.test.default}"/> </target> <target name="set-cli-1.0-configuration" depends="check-bin-dir"> *************** *** 326,329 **** --- 332,336 ---- <property name="current.sdkdoc.dir" value="${sdkdoc.dir}"/> <property name="current.sdkdoc.debug" value="${sdkdoc.debug}" dynamic="true"/> + <property name="nowarn.numbers.test" value="${nowarn.numbers.test.default}"/> </target> </project> |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:39
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/EasyEmployeeInfo In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/EasyEmployeeInfo Added Files: Default.aspx Default.aspx.cs Web.Config Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) --- NEW FILE: Web.Config --- <?xml version="1.0"?> <configuration> <spring> <context> <resource uri="config://spring/objects"/> </context> <objects xmlns="http://www.springframework.net"> <!-- define the currencyFormatter used for formatting the salary --> <object name="theCurrencyFormatter" type="Spring.Globalization.Formatters.CurrencyFormatter" /> </objects> </spring> </configuration> --- NEW FILE: Default.aspx.cs --- using System; using System.Diagnostics; /// <summary> /// Notice that your web page has to extend Spring.Web.UI.Page class /// in order to enable data binding and many other features. /// </summary> public partial class DataBinding_EasyEmployeeInfo_Default : Spring.Web.UI.Page { private EmployeeInfo employee = new EmployeeInfo(); public EmployeeInfo Employee { get { return employee; } } protected void Page_Load(object sender, EventArgs e) {} protected void btnSave_Click(object sender, EventArgs e) { // do something with employee such as: // employeeDao.Save(Employee); Debug.Write(Employee); } } --- NEW FILE: Default.aspx --- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="DataBinding_EasyEmployeeInfo_Default" %> <%@ Register TagPrefix="spring" Namespace="Spring.Web.UI.Controls" Assembly="Spring.Web" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Data Binding - Easy Employee Info example</title> </head> <body> <h2><a href="../../Default.aspx">Welcome to Spring.NET Web Framework Quick Start Guide</a></h2> <h2><a href="../Default.aspx">Bi-directional DataBinding</a></h2> <form id="form1" runat="server"> <div> <h2>Easy Employee Info example</h2> <p> Now that you have an idea of how databinding works, here's the easy way using a DataBindingPanel. </p> <p> TODO: describe DataBindingPanel </p> <spring:DataBindingPanel ID="ctlDataBindingPanel" runat="server"> <table cellpadding="3" cellspacing="3" border="0"> <tr> <td>Employee ID:</td> <td> <asp:TextBox ID="txtId" runat="server" BindingTarget="Employee.Id" /> <spring:ValidationError ID="ctlIdErrors" Provider="id.errors" runat="server" /> </td> </tr> <tr> <td>First Name:</td> <td><asp:TextBox ID="txtFirstName" runat="server" BindingTarget="Employee.FirstName" /></td> </tr> <tr> <td>Last Name:</td> <td><asp:TextBox ID="txtLastName" runat="server" BindingTarget="Employee.LastName" /></td> </tr> <tr> <td>Date of Birth:</td> <td> <asp:TextBox ID="txtDOB" runat="server" BindingTarget="Employee.DateOfBirth"/> <spring:ValidationError ID="ctlDOBErrors" Provider="dob.errors" runat="server" /> </td> </tr> <tr> <td>Gender:</td> <td> <!-- RadioButtonGroup control exposes Value property which is set to the value of the ID property of the selected radio button --> <spring:RadioButtonGroup ID="rbgGender" runat="server" BindingTarget="Employee.Gender"> <asp:RadioButton ID="Male" Text="Male" runat="server" /> <asp:RadioButton ID="Female" Text="Female" runat="server" /> </spring:RadioButtonGroup> </td> </tr> <tr> <td>Salary:</td> <td> <asp:TextBox ID="txtSalary" runat="server" BindingTarget="Employee.Salary" BindingFormatter="theCurrencyFormatter" /> <spring:ValidationError ID="ctlSalaryErrors" Provider="salary.errors" runat="server" /> </td> </tr> <tr> <td>Address Type:</td> <td> <!-- Another way to select one of the predefined values, which is how enum values should always be entered --> <asp:DropDownList ID="ddlAddressType" runat="server" BindingTarget="Employee.MailingAddress.AddressType"> <asp:ListItem Value="Home" Text="Home" Selected="True" /> <asp:ListItem Value="Office" Text="Office" /> </asp:DropDownList> </td> </tr> <tr> <td>Street 1:</td> <td><asp:TextBox ID="txtStreet1" runat="server" BindingTarget="Employee.MailingAddress.Street1" /></td> </tr> <tr> <td>Street 2:</td> <td><asp:TextBox ID="txtStreet2" runat="server" BindingTarget="Employee.MailingAddress.Street2" /></td> </tr> <tr> <td>City:</td> <td><asp:TextBox ID="txtCity" runat="server" BindingTarget="Employee.MailingAddress.City" /></td> </tr> <tr> <td>State:</td> <td><asp:TextBox ID="txtState" runat="server" BindingTarget="Employee.MailingAddress.State" /></td> </tr> <tr> <td>Postal Code/ZIP:</td> <td><asp:TextBox ID="txtPostalCode" runat="server" BindingTarget="Employee.MailingAddress.PostalCode" /></td> </tr> <tr> <td>Country:</td> <td><asp:TextBox ID="txtCountry" runat="server" BindingTarget="Employee.MailingAddress.Country" /></td> </tr> <tr> <td> </td> <td><asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" /></td> </tr> </table> </spring:DataBindingPanel> </div> </form> </body> </html> |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:39
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data.NHibernate In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/src/Spring/Spring.Data.NHibernate Modified Files: Spring.Data.NHibernate.build Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) Index: Spring.Data.NHibernate.build =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data.NHibernate/Spring.Data.NHibernate.build,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Spring.Data.NHibernate.build 16 Aug 2007 05:40:55 -0000 1.4 --- Spring.Data.NHibernate.build 3 Dec 2007 16:11:31 -0000 1.5 *************** *** 17,21 **** <arg line="${compiler.args}"/> <nowarn> ! <warning number="${nowarn.numbers.test},0169" /> </nowarn> <sources failonempty="true"> --- 17,21 ---- <arg line="${compiler.args}"/> <nowarn> ! <warning number="0169" /> </nowarn> <sources failonempty="true"> |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:39
|
Update of /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding Modified Files: Default.aspx Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) Index: Default.aspx =================================================================== RCS file: /cvsroot/springnet/Spring.Net/examples/Spring/Spring.WebQuickStart/src/Spring.WebQuickStart.2005/DataBinding/Default.aspx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Default.aspx 23 Aug 2007 10:37:53 -0000 1.1 --- Default.aspx 3 Dec 2007 16:11:30 -0000 1.2 *************** *** 40,43 **** --- 40,47 ---- Demonstrates bi-directional binding of multi-selection listboxes </p> + <h3><a href="EasyEmployeeInfo/Default.aspx">Easy Employee Info</a></h3> + <p> + Finally shows, how easy life can be when using a DataBindingPanel + </p> </div> </body> |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:38
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/test/Spring/Spring.Web.Tests Modified Files: Spring.Web.Tests.2003.csproj Spring.Web.Tests.2005.csproj Spring.Web.Tests.build Added Files: MyNUnitAddinHelper.cs Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) Index: Spring.Web.Tests.2003.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Spring.Web.Tests.2003.csproj,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** Spring.Web.Tests.2003.csproj 28 Nov 2007 23:26:27 -0000 1.38 --- Spring.Web.Tests.2003.csproj 3 Dec 2007 16:11:31 -0000 1.39 *************** *** 18,24 **** OutputType = "Library" PreBuildEvent = "" ! PostBuildEvent = "" RootNamespace = "Spring" ! RunPostBuildEvent = "OnBuildSuccess" StartupObject = "" > --- 18,24 ---- OutputType = "Library" PreBuildEvent = "" ! PostBuildEvent = 'echo "Copying .xml files for tests"
xcopy "$(ProjectDir)Data" ..\..\..\..\build\VS.Net.2003\Spring.Web.Tests\$(ConfigurationName)\ /y /s /q /d
' RootNamespace = "Spring" ! RunPostBuildEvent = "Always" StartupObject = "" > *************** *** 125,128 **** --- 125,144 ---- HintPath = "..\..\..\lib\Net\1.1\Rhino.Mocks.dll" /> + <Reference + Name = "NUnitAsp" + AssemblyName = "NUnitAsp" + HintPath = "..\..\..\lib\Net\1.1\NUnitAsp.dll" + /> + <Reference + Name = "NUnitAspEx" + AssemblyName = "NUnitAspEx" + HintPath = "..\..\..\lib\Net\1.1\NUnitAspEx.dll" + /> + <Reference + Name = "nunit.core.interfaces" + AssemblyName = "nunit.core.interfaces" + HintPath = "..\..\..\lib\Net\1.1\nunit.core.interfaces.dll" + Private = "False" + /> </References> </Build> *************** *** 135,138 **** --- 151,159 ---- /> <File + RelPath = "MyNUnitAddinHelper.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Spring.Web.Tests.build" BuildAction = "None" *************** *** 168,171 **** --- 189,221 ---- /> <File + RelPath = "Data\Spring\Web\Support\PageHandlerFactoryTests\DisablesSession.aspx" + BuildAction = "Content" + /> + <File + RelPath = "Data\Spring\Web\Support\PageHandlerFactoryTests\MaintainsSession1.aspx" + BuildAction = "Content" + /> + <File + RelPath = "Data\Spring\Web\Support\PageHandlerFactoryTests\MaintainsSession2.aspx" + BuildAction = "Content" + /> + <File + RelPath = "Data\Spring\Web\Support\PageHandlerFactoryTests\TransferAfterSetResult.aspx" + BuildAction = "Content" + /> + <File + RelPath = "Data\Spring\Web\Support\PageHandlerFactoryTests\TransferAfterSetResultSave.aspx" + BuildAction = "Content" + /> + <File + RelPath = "Data\Spring\Web\Support\PageHandlerFactoryTests\Web.Config" + BuildAction = "None" + /> + <File + RelPath = "Globalization\Resolvers\DefaultWebCultureResolverTests.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Objects\Factory\Support\WebObjectDefinitionFactoryTests.cs" SubType = "Code" *************** *** 227,230 **** --- 277,285 ---- /> <File + RelPath = "Web\Support\PageHandlerFactoryTests.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "Web\Support\ResultTests.cs" SubType = "Code" Index: Spring.Web.Tests.2005.csproj =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Spring.Web.Tests.2005.csproj,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Spring.Web.Tests.2005.csproj 28 Nov 2007 23:26:27 -0000 1.22 --- Spring.Web.Tests.2005.csproj 3 Dec 2007 16:11:31 -0000 1.23 *************** *** 82,85 **** --- 82,86 ---- </Compile> <Compile Include="Globalization\Resolvers\DefaultWebCultureResolverTests.cs" /> + <Compile Include="MyNUnitAddinHelper.cs" /> <Compile Include="Objects\Factory\Support\WebObjectDefinitionFactoryTests.cs" /> <Compile Include="Objects\Factory\Support\WebObjectFactoryTests.cs"> *************** *** 101,104 **** --- 102,106 ---- <Compile Include="Web\Services\WebServiceExporterTests.cs" /> <Compile Include="Web\Support\MimeMediaTypeTests.cs" /> + <Compile Include="Web\Support\PageHandlerFactoryTests.cs" /> <Compile Include="Web\Support\ResultTests.cs"> <SubType>Code</SubType> *************** *** 107,110 **** --- 109,114 ---- <Compile Include="Web\UI\PageTests.cs"> </Compile> + <None Include="Data\Spring\Web\Support\PageHandlerFactoryTests\Web.Config.net-1.1" /> + <None Include="Data\Spring\Web\Support\PageHandlerFactoryTests\Web.Config.net-2.0" /> <None Include="Spring.Web.Tests.build" /> </ItemGroup> *************** *** 115,118 **** --- 119,128 ---- <EmbeddedResource Include="Context\Support\HttpApplicationConfigurerTests.xml" /> <Content Include="Data\Spring\Objects\Factory\Support\TestForm.aspx" /> + <Content Include="Data\Spring\Web\Support\PageHandlerFactoryTests\bin\nunit.core.dll" /> + <Content Include="Data\Spring\Web\Support\PageHandlerFactoryTests\TransferAfterSetResult.aspx" /> + <Content Include="Data\Spring\Web\Support\PageHandlerFactoryTests\MaintainsSession1.aspx" /> + <Content Include="Data\Spring\Web\Support\PageHandlerFactoryTests\MaintainsSession2.aspx" /> + <Content Include="Data\Spring\Web\Support\PageHandlerFactoryTests\DisablesSession.aspx" /> + <Content Include="Data\Spring\Web\Support\PageHandlerFactoryTests\TransferAfterSetResultSave.aspx" /> </ItemGroup> <ItemGroup> *************** *** 125,132 **** --- 135,154 ---- <HintPath>..\..\..\lib\Net\2.0\Common.Logging.dll</HintPath> </Reference> + <Reference Include="nunit.core.interfaces, Version=2.4.1.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\lib\Net\2.0\nunit.core.interfaces.dll</HintPath> + </Reference> <Reference Include="nunit.framework, Version=2.4.1.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\..\lib\Net\2.0\nunit.framework.dll</HintPath> </Reference> + <Reference Include="NUnitAsp, Version=1.5.1.27647, Culture=neutral, PublicKeyToken=f9bdb8e9d00f2b23"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\lib\Net\2.0\NUnitAsp.dll</HintPath> + </Reference> + <Reference Include="NUnitAspEx, Version=1.0.2892.39670, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\lib\Net\2.0\NUnitAspEx.dll</HintPath> + </Reference> <Reference Include="Rhino.Mocks, Version=2.9.6.40380, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> Index: Spring.Web.Tests.build =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Spring.Web.Tests.build,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Spring.Web.Tests.build 16 Aug 2007 05:42:34 -0000 1.9 --- Spring.Web.Tests.build 3 Dec 2007 16:11:31 -0000 1.10 *************** *** 6,16 **** * build.debug - (true|false) debug build? * current.build.defines.csc - framework-specific build defines --> <target name="build"> ! <!-- build Spring.Web --> <csc target="library" define="${current.build.defines.csc}" warnaserror="true" debug="${current.build.debug}" output="${current.bin.dir}/${project::get-name()}.dll" doc="${current.bin.dir}/${project::get-name()}.xml"> <nowarn> ! <warning number="${nowarn.numbers.test}" /> </nowarn> <sources failonempty="true"> --- 6,17 ---- * build.debug - (true|false) debug build? * current.build.defines.csc - framework-specific build defines + * lib.dir - framework-specific assembly references --> <target name="build"> ! <!-- build Spring.Web --> <csc target="library" define="${current.build.defines.csc}" warnaserror="true" debug="${current.build.debug}" output="${current.bin.dir}/${project::get-name()}.dll" doc="${current.bin.dir}/${project::get-name()}.xml"> <nowarn> ! <warning number="${nowarn.numbers.test}" /> <!-- 1701 --> </nowarn> <sources failonempty="true"> *************** *** 23,33 **** <include name="**/*.txt" /> <include name="**/*.xml" /> ! <exclude name="Data/**/*" /> ! <exclude name="obj/**/*" /> </resources> <references basedir="${current.bin.dir}"> <include name="*.dll" /> <exclude name="${project::get-name()}.dll" /> ! <exclude name="CloverRuntime.dll" /> </references> </csc> --- 24,35 ---- <include name="**/*.txt" /> <include name="**/*.xml" /> ! <exclude name="Data/**/*" /> ! <exclude name="obj/**/*" /> </resources> <references basedir="${current.bin.dir}"> <include name="*.dll" /> <exclude name="${project::get-name()}.dll" /> ! <exclude name="CloverRuntime.dll" /> ! <include name="${lib.dir}/nunit.core.interfaces.dll" /> </references> </csc> --- NEW FILE: MyNUnitAddinHelper.cs --- (This appears to be a binary file; contents omitted.) |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:37
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/UI/Controls In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/src/Spring/Spring.Web/Web/UI/Controls Modified Files: DataBindingPanel.cs Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) Index: DataBindingPanel.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Web/UI/Controls/DataBindingPanel.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** DataBindingPanel.cs 21 Aug 2007 19:27:19 -0000 1.9 --- DataBindingPanel.cs 3 Dec 2007 16:11:31 -0000 1.10 *************** *** 22,26 **** --- 22,28 ---- using System; + using System.ComponentModel; using System.Reflection; + using System.Security.Permissions; using System.Web; using System.Web.UI; *************** *** 34,37 **** --- 36,41 ---- using Spring.Objects; using Spring.Util; + using AttributeCollection=System.Web.UI.AttributeCollection; + using BindingDirection=Spring.DataBinding.BindingDirection; #endregion *************** *** 45,49 **** /// <author>Erich Eichinger</author> /// <version>$Id$</version> ! public class DataBindingPanel : Control { private const string ATTR_BINDINGTARGET = "BindingTarget"; --- 49,63 ---- /// <author>Erich Eichinger</author> /// <version>$Id$</version> ! [PersistChildren(true), ! ToolboxData("<{0}:DataBindingPanel runat=\"server\" Width=\"125px\" Height=\"50px\"> </{0}:DataBindingPanel>"), ! ParseChildren(false), ! #if NET_1_1 ! Designer("System.Web.UI.Design.WebControls.PanelDesigner, System.Design, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), ! #else ! Designer("System.Web.UI.Design.WebControls.PanelContainerDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), ! #endif ! AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal), ! AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] ! public class DataBindingPanel : Panel { private const string ATTR_BINDINGTARGET = "BindingTarget"; *************** *** 82,85 **** --- 96,108 ---- /// <summary> + /// Overriden to suppress rendering this control's tag + /// </summary> + /// <param name="writer"></param> + protected override void Render(HtmlTextWriter writer) + { + base.RenderContents(writer); + } + + /// <summary> /// Called by the containing <see cref="UserControl"/> if bindings must be initialized. /// </summary> |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:37
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Objects/Factory/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/test/Spring/Spring.Web.Tests/Objects/Factory/Support Modified Files: WebObjectDefinitionFactoryTests.cs Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) Index: WebObjectDefinitionFactoryTests.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Objects/Factory/Support/WebObjectDefinitionFactoryTests.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** WebObjectDefinitionFactoryTests.cs 29 May 2007 18:19:26 -0000 1.1 --- WebObjectDefinitionFactoryTests.cs 3 Dec 2007 16:11:31 -0000 1.2 *************** *** 87,91 **** /// </summary> /// <remarks> ! /// We keep this test here to ensure a minimum of checking expected behaviour /// - in this case trying to compile the requested page. /// </remarks> --- 87,91 ---- /// </summary> /// <remarks> ! /// We keep this test here to ensure a minimum of checking expected behaviour /// - in this case trying to compile the requested page. /// </remarks> *************** *** 94,98 **** public void ResolvesToPageRootDefinitionIfEndsWithASPX() { ! using (TestWebContext ctx = new TestWebContext("/Spring/Objects/Factory/Support/", "/testform.aspx")) { WebObjectDefinitionFactory factory = new WebObjectDefinitionFactory(); --- 94,98 ---- public void ResolvesToPageRootDefinitionIfEndsWithASPX() { ! using (TestWebContext ctx = new TestWebContext("/Spring/Objects/Factory/Support", "/testform.aspx")) { WebObjectDefinitionFactory factory = new WebObjectDefinitionFactory(); *************** *** 108,112 **** /// </summary> /// <remarks> ! /// We keep this test here to ensure a minimum of checking expected behaviour /// - in this case trying to compile the requested page. /// </remarks> --- 108,112 ---- /// </summary> /// <remarks> ! /// We keep this test here to ensure a minimum of checking expected behaviour /// - in this case trying to compile the requested page. /// </remarks> *************** *** 115,119 **** public void ResolvesToPageChildDefinitionIfEndsWithASPX() { ! using(TestWebContext ctx = new TestWebContext("/Spring/Objects/Factory/Support/", "/testform.aspx")) { WebObjectDefinitionFactory factory = new WebObjectDefinitionFactory(); --- 115,119 ---- public void ResolvesToPageChildDefinitionIfEndsWithASPX() { ! using(TestWebContext ctx = new TestWebContext("/Spring/Objects/Factory/Support", "/testform.aspx")) { WebObjectDefinitionFactory factory = new WebObjectDefinitionFactory(); |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:37
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Objects/Factory/Support In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/src/Spring/Spring.Web/Objects/Factory/Support Modified Files: WebObjectUtils.cs Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) Index: WebObjectUtils.cs =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Web/Objects/Factory/Support/WebObjectUtils.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** WebObjectUtils.cs 1 Aug 2007 23:10:46 -0000 1.1 --- WebObjectUtils.cs 3 Dec 2007 16:11:31 -0000 1.2 *************** *** 102,107 **** #if NET_1_1 HttpContext context = HttpContext.Current; ! page = PageParser.GetCompiledPageInstance(pageUrl, ! context.Server.MapPath(pageUrl), context); #else HttpContext ctx = HttpContext.Current; --- 102,108 ---- #if NET_1_1 HttpContext context = HttpContext.Current; ! string physicalPath = context.Server.MapPath(pageUrl); ! s_log.Debug(string.Format("constructing page virtual path '{0}' from physical file '{1}'", pageUrl, physicalPath)); ! page = PageParser.GetCompiledPageInstance(pageUrl, physicalPath, context); #else HttpContext ctx = HttpContext.Current; |
From: Erich E. <oak...@us...> - 2007-12-03 16:11:34
|
Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23425/src/Spring/Spring.Data Modified Files: Spring.Data.build Log Message: nant build script's variable ${nowarn.numbers.test} renamed to ${nowarn.numbers.test.default} DataBindingPanel -> added design-time support (SPRNET-774) DataBindingPanel -> added examples to SpringWebQuickstart "EasyEmplyeeInfo" (SPRNET-787) integrated NUnitAspEx (SPRNET-788) added PageHandlerFactory tests w.r.t. Server.Transfer() (SPRNET-763) Index: Spring.Data.build =================================================================== RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Spring.Data.build,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Spring.Data.build 8 Aug 2007 00:34:33 -0000 1.18 --- Spring.Data.build 3 Dec 2007 16:11:31 -0000 1.19 *************** *** 16,20 **** <arg line="${compiler.args}"/> <nowarn> ! <warning number="${nowarn.numbers.test},0169,0168" /> </nowarn> <sources failonempty="true"> --- 16,20 ---- <arg line="${compiler.args}"/> <nowarn> ! <warning number="1591,0169,0168" /> </nowarn> <sources failonempty="true"> |
From: Erich E. <oak...@us...> - 2007-12-03 16:03:26
|
Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Data/Spring/Web/Support/PageHandlerFactoryTests In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv20622/PageHandlerFactoryTests Log Message: Directory /cvsroot/springnet/Spring.Net/test/Spring/Spring.Web.Tests/Data/Spring/Web/Support/PageHandlerFactoryTests added to the repository |