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