Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MessageListenerAdapter.ApplicationContext Property

Gets or sets the IApplicationContext that this object runs in.

[Visual Basic]
Public Property ApplicationContext() As IApplicationContext _
    Implements IApplicationContextAware.ApplicationContext

   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public IApplicationContext ApplicationContext { public get; public set; }

Implements

IApplicationContextAware.ApplicationContext

Remarks

Normally this call will be used to initialize the object.

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

Exceptions

Exception Type Condition
ApplicationContextException In the case of application context initialization errors.
ObjectsException If thrown by any application context methods.
ObjectInitializationException  

See Also

MessageListenerAdapter Class | Spring.Messaging.Listener Namespace