Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IApplicationContextAware.ApplicationContext Property

Sets the IApplicationContext that this object runs in.

[Visual Basic]
Public MustOverride WriteOnly Property ApplicationContext() As IApplicationContext
   Public Set
   End Set
End Property
[C#]
public IApplicationContext ApplicationContext { public set; }

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

IApplicationContextAware Interface | Spring.Context Namespace