diff --git a/src/Spring/Spring.Aop/Aspects/Cache/BaseCacheAdvice.cs b/src/Spring/Spring.Aop/Aspects/Cache/BaseCacheAdvice.cs index e671a406..05deee99 100644 --- a/src/Spring/Spring.Aop/Aspects/Cache/BaseCacheAdvice.cs +++ b/src/Spring/Spring.Aop/Aspects/Cache/BaseCacheAdvice.cs @@ -1,161 +1,160 @@ -#region License - -/* - * Copyright © 2002-2006 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#endregion - -#region Imports - -using System; -using System.Reflection; - -using Spring.Caching; -using Spring.Context; -using Spring.Expressions; -using System.Collections; - -#endregion - -namespace Spring.Aspects.Cache -{ - /// - /// Base class for different cache advice implementations that provide - /// access to common functionality, such as obtaining a cache instance. - /// - /// Aleksandar Seovic - public class BaseCacheAdvice : IApplicationContextAware - { - private IApplicationContext applicationContext; - - /// - /// Set the that this - /// object runs in. - /// - public IApplicationContext ApplicationContext - { - get { return applicationContext; } - set { applicationContext = value; } - } - - /// - /// Returns an instance based on the cache name. - /// - /// The name of the cache. - /// - /// Cache instance for the specified if one - /// is registered in the application context, or null if it isn't. - /// - public ICache GetCache(string name) - { - return applicationContext.GetObject(name) as ICache; - } - - /// - /// Prepares variables for expression evaluation by packaging all - /// method arguments into a dictionary, keyed by argument name. - /// - /// - /// Method to get parameters info from. - /// - /// - /// Argument values to package. - /// - /// - /// A dictionary containing all method arguments, keyed by method name. - /// - protected static IDictionary PrepareVariables(MethodInfo method, object[] arguments) +#region License + +/* + * Copyright © 2002-2006 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#endregion + +#region Imports + +using System; +using System.Reflection; + +using Spring.Caching; +using Spring.Context; +using Spring.Expressions; +using System.Collections; + +#endregion + +namespace Spring.Aspects.Cache +{ + /// + /// Base class for different cache advice implementations that provide + /// access to common functionality, such as obtaining a cache instance. + /// + /// Aleksandar Seovic + public class BaseCacheAdvice : IApplicationContextAware + { + private IApplicationContext applicationContext; + + /// + /// Sets the that this + /// object runs in. + /// + public IApplicationContext ApplicationContext + { + set { applicationContext = value; } + } + + /// + /// Returns an instance based on the cache name. + /// + /// The name of the cache. + /// + /// Cache instance for the specified if one + /// is registered in the application context, or null if it isn't. + /// + public ICache GetCache(string name) + { + return applicationContext.GetObject(name) as ICache; + } + + /// + /// Prepares variables for expression evaluation by packaging all + /// method arguments into a dictionary, keyed by argument name. + /// + /// + /// Method to get parameters info from. + /// + /// + /// Argument values to package. + /// + /// + /// A dictionary containing all method arguments, keyed by method name. + /// + protected static IDictionary PrepareVariables(MethodInfo method, object[] arguments) { IDictionary vars = new Hashtable(); - vars[method.Name] = method; - - ParameterInfo[] parameters = method.GetParameters(); - for (int i = 0; i < parameters.Length; i++) - { - ParameterInfo p = parameters[i]; - vars[p.Name] = arguments[i]; - } - return vars; - } - - /// - /// Evaluates a SpEL expression as a boolean value. - /// - /// - /// The expression string that should be evaluated. - /// - /// - /// The SpEL expression instance that should be evaluated. - /// - /// - /// The object to evaluate expression against. - /// - /// - /// The expression variables dictionary. - /// - /// - /// The evaluated boolean. - /// - /// - /// If the SpEL expression could not be successfuly resolved to a boolean. - /// - protected static bool EvalCondition(string condition, - IExpression conditionExpression, object context, IDictionary variables) - { - if (conditionExpression == null) - { - return true; - } - else - { - object value = conditionExpression.GetValue(context, variables); - if (value is bool) - { - return (bool)value; - } - else - { - throw new InvalidOperationException(String.Format( - "The SpEL expression '{0}' could not be successfuly resolved to a boolean.", - condition)); - } - } - } - - /// - /// Retrieves custom attribute for the specified attribute type. - /// - /// - /// Method to get attribute from. - /// - /// - /// Attribute type. - /// - /// - /// Attribute instance if one is found, null otherwise. - /// - protected static object GetCustomAttribute(MethodInfo method, Type attributeType) - { - object[] attributes = method.GetCustomAttributes(attributeType, false); - if (attributes.Length > 0) - { - return attributes[0]; - } - return null; - } - } + vars[method.Name] = method; + + ParameterInfo[] parameters = method.GetParameters(); + for (int i = 0; i < parameters.Length; i++) + { + ParameterInfo p = parameters[i]; + vars[p.Name] = arguments[i]; + } + return vars; + } + + /// + /// Evaluates a SpEL expression as a boolean value. + /// + /// + /// The expression string that should be evaluated. + /// + /// + /// The SpEL expression instance that should be evaluated. + /// + /// + /// The object to evaluate expression against. + /// + /// + /// The expression variables dictionary. + /// + /// + /// The evaluated boolean. + /// + /// + /// If the SpEL expression could not be successfuly resolved to a boolean. + /// + protected static bool EvalCondition(string condition, + IExpression conditionExpression, object context, IDictionary variables) + { + if (conditionExpression == null) + { + return true; + } + else + { + object value = conditionExpression.GetValue(context, variables); + if (value is bool) + { + return (bool)value; + } + else + { + throw new InvalidOperationException(String.Format( + "The SpEL expression '{0}' could not be successfuly resolved to a boolean.", + condition)); + } + } + } + + /// + /// Retrieves custom attribute for the specified attribute type. + /// + /// + /// Method to get attribute from. + /// + /// + /// Attribute type. + /// + /// + /// Attribute instance if one is found, null otherwise. + /// + protected static object GetCustomAttribute(MethodInfo method, Type attributeType) + { + object[] attributes = method.GetCustomAttributes(attributeType, false); + if (attributes.Length > 0) + { + return attributes[0]; + } + return null; + } + } } \ No newline at end of file diff --git a/src/Spring/Spring.Aop/Aspects/Cache/CacheAspect.cs b/src/Spring/Spring.Aop/Aspects/Cache/CacheAspect.cs index 3b98e5c5..de954783 100644 --- a/src/Spring/Spring.Aop/Aspects/Cache/CacheAspect.cs +++ b/src/Spring/Spring.Aop/Aspects/Cache/CacheAspect.cs @@ -64,8 +64,9 @@ namespace Spring.Aspects.Cache get { return advisors; } set { throw new NotSupportedException("Cache aspect advisors cannot be set externally."); } } + /// - /// Set the that this + /// Sets the that this /// object runs in. /// /// @@ -92,7 +93,6 @@ namespace Spring.Aspects.Cache /// public IApplicationContext ApplicationContext { - get { return applicationContext; } set { applicationContext = value; diff --git a/src/Spring/Spring.Aop/Aspects/Cache/CacheParameterAdvisor.cs b/src/Spring/Spring.Aop/Aspects/Cache/CacheParameterAdvisor.cs index a8d337b4..1d48397a 100644 --- a/src/Spring/Spring.Aop/Aspects/Cache/CacheParameterAdvisor.cs +++ b/src/Spring/Spring.Aop/Aspects/Cache/CacheParameterAdvisor.cs @@ -49,7 +49,7 @@ namespace Spring.Aspects.Cache } /// - /// Set the that this + /// Sets the that this /// object runs in. /// /// @@ -76,7 +76,6 @@ namespace Spring.Aspects.Cache /// public IApplicationContext ApplicationContext { - get { return ((IApplicationContextAware) Advice).ApplicationContext; } set { ((IApplicationContextAware)Advice).ApplicationContext = value; } } diff --git a/src/Spring/Spring.Aop/Aspects/Cache/CacheResultAdvisor.cs b/src/Spring/Spring.Aop/Aspects/Cache/CacheResultAdvisor.cs index 0928b56d..26dd473e 100644 --- a/src/Spring/Spring.Aop/Aspects/Cache/CacheResultAdvisor.cs +++ b/src/Spring/Spring.Aop/Aspects/Cache/CacheResultAdvisor.cs @@ -46,7 +46,7 @@ namespace Spring.Aspects.Cache } /// - /// Set the that this + /// Sets the that this /// object runs in. /// /// @@ -73,7 +73,6 @@ namespace Spring.Aspects.Cache /// public IApplicationContext ApplicationContext { - get { return ((IApplicationContextAware) Advice).ApplicationContext; } set { ((IApplicationContextAware) Advice).ApplicationContext = value; } } diff --git a/src/Spring/Spring.Aop/Aspects/Cache/InvalidateCacheAdvisor.cs b/src/Spring/Spring.Aop/Aspects/Cache/InvalidateCacheAdvisor.cs index 85bd84ec..0e342b82 100644 --- a/src/Spring/Spring.Aop/Aspects/Cache/InvalidateCacheAdvisor.cs +++ b/src/Spring/Spring.Aop/Aspects/Cache/InvalidateCacheAdvisor.cs @@ -47,7 +47,7 @@ namespace Spring.Aspects.Cache } /// - /// Set the that this + /// Sets the that this /// object runs in. /// /// @@ -74,7 +74,6 @@ namespace Spring.Aspects.Cache /// public IApplicationContext ApplicationContext { - get { return ((IApplicationContextAware) Advice).ApplicationContext; } set { ((IApplicationContextAware) Advice).ApplicationContext = value; } } } diff --git a/src/Spring/Spring.Aop/Aspects/Validation/ParameterValidationAdvice.cs b/src/Spring/Spring.Aop/Aspects/Validation/ParameterValidationAdvice.cs index 157cbcd4..d1b9619a 100644 --- a/src/Spring/Spring.Aop/Aspects/Validation/ParameterValidationAdvice.cs +++ b/src/Spring/Spring.Aop/Aspects/Validation/ParameterValidationAdvice.cs @@ -61,14 +61,13 @@ namespace Spring.Aspects.Validation } /// - /// Gets or sets the application context to search for validators in. + /// Sets the application context to search for validators in. /// /// /// The application context to search for validators in. /// public IApplicationContext ApplicationContext { - get { return this.applicationContext; } set { this.applicationContext = value; } } } diff --git a/src/Spring/Spring.Aop/Aspects/Validation/ParameterValidationAdvisor.cs b/src/Spring/Spring.Aop/Aspects/Validation/ParameterValidationAdvisor.cs index b52e2040..0705de28 100644 --- a/src/Spring/Spring.Aop/Aspects/Validation/ParameterValidationAdvisor.cs +++ b/src/Spring/Spring.Aop/Aspects/Validation/ParameterValidationAdvisor.cs @@ -50,7 +50,7 @@ namespace Spring.Aspects.Validation } /// - /// Set the that this + /// Sets the that this /// object runs in. /// /// @@ -77,7 +77,6 @@ namespace Spring.Aspects.Validation /// public IApplicationContext ApplicationContext { - get { return ((IApplicationContextAware)Advice).ApplicationContext; } set { ((IApplicationContextAware)Advice).ApplicationContext = value; } } diff --git a/src/Spring/Spring.Core/Context/IApplicationContextAware.cs b/src/Spring/Spring.Core/Context/IApplicationContextAware.cs index cec4a134..c15f37b9 100644 --- a/src/Spring/Spring.Core/Context/IApplicationContextAware.cs +++ b/src/Spring/Spring.Core/Context/IApplicationContextAware.cs @@ -67,7 +67,7 @@ namespace Spring.Context public interface IApplicationContextAware { /// - /// Set the that this + /// Sets the that this /// object runs in. /// /// @@ -92,6 +92,6 @@ namespace Spring.Context /// If thrown by any application context methods. /// /// - IApplicationContext ApplicationContext { set; get; } + IApplicationContext ApplicationContext { set; } } } diff --git a/src/Spring/Spring.Core/Context/Support/ApplicationObjectSupport.cs b/src/Spring/Spring.Core/Context/Support/ApplicationObjectSupport.cs index 2aea4955..4e902c96 100644 --- a/src/Spring/Spring.Core/Context/Support/ApplicationObjectSupport.cs +++ b/src/Spring/Spring.Core/Context/Support/ApplicationObjectSupport.cs @@ -143,7 +143,7 @@ namespace Spring.Context.Support #region IApplicationContextAware Members /// - /// Set the that this + /// Gets or sets the that this /// object runs in. /// /// diff --git a/src/Spring/Spring.Messaging/Messaging/Core/DefaultMessageQueueFactory.cs b/src/Spring/Spring.Messaging/Messaging/Core/DefaultMessageQueueFactory.cs index 46f86eb2..a6c7b43d 100644 --- a/src/Spring/Spring.Messaging/Messaging/Core/DefaultMessageQueueFactory.cs +++ b/src/Spring/Spring.Messaging/Messaging/Core/DefaultMessageQueueFactory.cs @@ -1,22 +1,22 @@ #region License -/* - * Copyright © 2002-2008 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/* + * Copyright © 2002-2008 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ -#endregion +#endregion using System.Collections; @@ -48,15 +48,15 @@ namespace Spring.Messaging.Core public MessageQueue CreateMessageQueue(string messageQueueObjectName) { AssertUtils.ArgumentHasText(messageQueueObjectName, "DefaultMessageQueueObjectName"); - IDictionary queues = LogicalThreadContext.GetData(QUEUE_DICTIONARY_SLOTNAME) as IDictionary; - if (queues == null) + IDictionary queues = LogicalThreadContext.GetData(QUEUE_DICTIONARY_SLOTNAME) as IDictionary; + if (queues == null) { queues = new Hashtable(); LogicalThreadContext.SetData(QUEUE_DICTIONARY_SLOTNAME, queues); - } - if (!queues.Contains(messageQueueObjectName)) + } + if (!queues.Contains(messageQueueObjectName)) { - MessageQueue mq = ApplicationContext.GetObject(messageQueueObjectName) as MessageQueue; + MessageQueue mq = applicationContext.GetObject(messageQueueObjectName) as MessageQueue; queues.Add(messageQueueObjectName, mq); } return queues[messageQueueObjectName] as MessageQueue; @@ -73,7 +73,7 @@ namespace Spring.Messaging.Core } if (!converters.Contains(messgaeConverterObjectName)) { - IMessageConverter mc = ApplicationContext.GetObject(messgaeConverterObjectName) as IMessageConverter; + IMessageConverter mc = applicationContext.GetObject(messgaeConverterObjectName) as IMessageConverter; converters.Add(messgaeConverterObjectName, mc); } return converters[messgaeConverterObjectName] as IMessageConverter; @@ -83,6 +83,32 @@ namespace Spring.Messaging.Core #region IApplicationContextAware Members + /// + /// Gets or sets the that this + /// object runs in. + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// public IApplicationContext ApplicationContext { get { return applicationContext; } diff --git a/src/Spring/Spring.Messaging/Messaging/Core/MessageQueueTemplate.cs b/src/Spring/Spring.Messaging/Messaging/Core/MessageQueueTemplate.cs index 9fa8b5f5..aa49c18c 100644 --- a/src/Spring/Spring.Messaging/Messaging/Core/MessageQueueTemplate.cs +++ b/src/Spring/Spring.Messaging/Messaging/Core/MessageQueueTemplate.cs @@ -194,13 +194,36 @@ namespace Spring.Messaging.Core set { timeout = value; } } + #endregion + #region IApplicationContextAware Members - /// - /// Set the that this + /// Gets or sets the that this /// object runs in. - /// + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// public IApplicationContext ApplicationContext { get { return applicationContext; } @@ -209,8 +232,6 @@ namespace Spring.Messaging.Core #endregion - #endregion - #region IInitializingObject Members diff --git a/src/Spring/Spring.Messaging/Messaging/Listener/AbstractMessageListenerContainer.cs b/src/Spring/Spring.Messaging/Messaging/Listener/AbstractMessageListenerContainer.cs index aa861c77..d71a6507 100644 --- a/src/Spring/Spring.Messaging/Messaging/Listener/AbstractMessageListenerContainer.cs +++ b/src/Spring/Spring.Messaging/Messaging/Listener/AbstractMessageListenerContainer.cs @@ -122,6 +122,32 @@ namespace Spring.Messaging.Listener #region IApplicationContextAware Members + /// + /// Gets or sets the that this + /// object runs in. + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// public IApplicationContext ApplicationContext { get { return applicationContext; } diff --git a/src/Spring/Spring.Messaging/Messaging/Listener/AbstractSendToQueueExceptionHandler.cs b/src/Spring/Spring.Messaging/Messaging/Listener/AbstractSendToQueueExceptionHandler.cs index 571c6cb7..8fb97398 100644 --- a/src/Spring/Spring.Messaging/Messaging/Listener/AbstractSendToQueueExceptionHandler.cs +++ b/src/Spring/Spring.Messaging/Messaging/Listener/AbstractSendToQueueExceptionHandler.cs @@ -15,7 +15,6 @@ namespace Spring.Messaging.Listener private string messageQueueObjectName; private IApplicationContext applicationContext; - protected object messageMapMonitor = new object(); protected IDictionary messageMap = new Hashtable(); @@ -54,9 +53,31 @@ namespace Spring.Messaging.Listener #region IApplicationContextAware Members /// - /// Set the that this + /// Gets or sets the that this /// object runs in. /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// public IApplicationContext ApplicationContext { get { return applicationContext; } diff --git a/src/Spring/Spring.Messaging/Messaging/Listener/MessageListenerAdapter.cs b/src/Spring/Spring.Messaging/Messaging/Listener/MessageListenerAdapter.cs index e0357ff7..6c00916f 100644 --- a/src/Spring/Spring.Messaging/Messaging/Listener/MessageListenerAdapter.cs +++ b/src/Spring/Spring.Messaging/Messaging/Listener/MessageListenerAdapter.cs @@ -179,6 +179,32 @@ namespace Spring.Messaging.Listener #region IApplicationContextAware Members + /// + /// Gets or sets the that this + /// object runs in. + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// public IApplicationContext ApplicationContext { get { return applicationContext; } diff --git a/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/JobDetailObject.cs b/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/JobDetailObject.cs index cfa14013..2838aa3d 100644 --- a/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/JobDetailObject.cs +++ b/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/JobDetailObject.cs @@ -105,7 +105,7 @@ namespace Spring.Scheduling.Quartz } /// - /// Set the that this + /// Gets or sets the that this /// object runs in. /// /// diff --git a/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/SchedulerFactoryObject.cs b/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/SchedulerFactoryObject.cs index 27754018..e8d3b17f 100644 --- a/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/SchedulerFactoryObject.cs +++ b/src/Spring/Spring.Scheduling.Quartz/Scheduling/Quartz/SchedulerFactoryObject.cs @@ -568,7 +568,7 @@ namespace Spring.Scheduling.Quartz #region IApplicationContextAware Members /// - /// Set the that this + /// Sets the that this /// object runs in. /// /// @@ -597,7 +597,6 @@ namespace Spring.Scheduling.Quartz public virtual IApplicationContext ApplicationContext { set { applicationContext = value; } - get { return applicationContext; } } #endregion diff --git a/src/Spring/Spring.Services/Remoting/CaoExporter.cs b/src/Spring/Spring.Services/Remoting/CaoExporter.cs index 75b0782c..c6e269cd 100644 --- a/src/Spring/Spring.Services/Remoting/CaoExporter.cs +++ b/src/Spring/Spring.Services/Remoting/CaoExporter.cs @@ -100,15 +100,37 @@ namespace Spring.Remoting #endregion - #region IApplicationContextAware Members - - /// - /// Gets or sets the that this - /// object runs in. - /// + #region IApplicationContextAware Members + + /// + /// Sets the that this + /// object runs in. + /// + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// public IApplicationContext ApplicationContext { - get { return applicationContext; } set { applicationContext = value; } } diff --git a/src/Spring/Spring.Services/Remoting/SaoExporter.cs b/src/Spring/Spring.Services/Remoting/SaoExporter.cs index 8f92e631..fa760777 100644 --- a/src/Spring/Spring.Services/Remoting/SaoExporter.cs +++ b/src/Spring/Spring.Services/Remoting/SaoExporter.cs @@ -134,15 +134,37 @@ namespace Spring.Remoting #endregion - #region IApplicationContextAware Members - - /// - /// Gets or sets the that this - /// object runs in. - /// + #region IApplicationContextAware Members + + /// + /// Sets the that this + /// object runs in. + /// + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// public IApplicationContext ApplicationContext { - get { return applicationContext; } set { applicationContext = value; } } diff --git a/src/Spring/Spring.Services/ServiceModel/Activation/ServiceHostFactoryObject.cs b/src/Spring/Spring.Services/ServiceModel/Activation/ServiceHostFactoryObject.cs index 42daf211..c9c6dfea 100644 --- a/src/Spring/Spring.Services/ServiceModel/Activation/ServiceHostFactoryObject.cs +++ b/src/Spring/Spring.Services/ServiceModel/Activation/ServiceHostFactoryObject.cs @@ -104,12 +104,34 @@ namespace Spring.ServiceModel.Activation #region IApplicationContextAware Members /// - /// Gets or sets the that this + /// Sets the that this /// object runs in. /// + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// public IApplicationContext ApplicationContext { - get { return _applicationContext; } set { _applicationContext = value; } } diff --git a/src/Spring/Spring.Web/Web/Support/AbstractProcessHandler.cs b/src/Spring/Spring.Web/Web/Support/AbstractProcessHandler.cs index 4937a6d9..37fe10f4 100644 --- a/src/Spring/Spring.Web/Web/Support/AbstractProcessHandler.cs +++ b/src/Spring/Spring.Web/Web/Support/AbstractProcessHandler.cs @@ -276,11 +276,34 @@ namespace Spring.Web.Support #region IApplicationContextAware implementation /// - /// Gets or sets the application context. + /// Sets the that this + /// object runs in. /// + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// public IApplicationContext ApplicationContext { - get { return this.applicationContext; } set { this.applicationContext = value; } } diff --git a/src/Spring/Spring.Web/Web/UI/MasterPage.cs b/src/Spring/Spring.Web/Web/UI/MasterPage.cs index 249a74ff..748f05e9 100644 --- a/src/Spring/Spring.Web/Web/UI/MasterPage.cs +++ b/src/Spring/Spring.Web/Web/UI/MasterPage.cs @@ -246,8 +246,32 @@ namespace Spring.Web.UI #region Application context support /// - /// Gets or sets Spring application context. + /// Gets or sets the that this + /// object runs in. /// + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public virtual IApplicationContext ApplicationContext diff --git a/src/Spring/Spring.Web/Web/UI/Page.cs b/src/Spring/Spring.Web/Web/UI/Page.cs index d4bdea23..1d7909c1 100644 --- a/src/Spring/Spring.Web/Web/UI/Page.cs +++ b/src/Spring/Spring.Web/Web/UI/Page.cs @@ -1412,8 +1412,32 @@ namespace Spring.Web.UI #region Application context support /// - /// Gets or sets Spring application context of the page. + /// Gets or sets the that this + /// object runs in. /// + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public virtual IApplicationContext ApplicationContext diff --git a/src/Spring/Spring.Web/Web/UI/UserControl.cs b/src/Spring/Spring.Web/Web/UI/UserControl.cs index c63fa430..6512a6c4 100644 --- a/src/Spring/Spring.Web/Web/UI/UserControl.cs +++ b/src/Spring/Spring.Web/Web/UI/UserControl.cs @@ -849,8 +849,32 @@ namespace Spring.Web.UI #region Application context support /// - /// Gets or sets Spring application context of the page. + /// Gets or sets the that this + /// object runs in. /// + /// + /// + ///

+ /// Normally this call will be used to initialize the object. + ///

+ ///

+ /// Invoked after population of normal object properties but before an + /// init callback such as + /// 's + /// + /// or a custom init-method. Invoked after the setting of any + /// 's + /// + /// property. + ///

+ ///
+ /// + /// In the case of application context initialization errors. + /// + /// + /// If thrown by any application context methods. + /// + /// [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public virtual IApplicationContext ApplicationContext