Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractHandlerFactory.GetCheckedApplicationContext Method

Get the application context instance corresponding to the given absolute url and checks it for IConfigurableApplicationContext contract and being not null.

[Visual Basic]
Protected Sub GetCheckedApplicationContext( _
   ByVal url As String _
)
[C#]
protected IConfigurableApplicationContext GetCheckedApplicationContext(
   string url
);

Parameters

url
the absolute url

Return Value

teh application context instance corresponding to the given absolute url.

Remarks

Calls GetContext to obtain a context instance.

Exceptions

Exception Type Condition
ArgumentException if no context is found
InvalidOperationException if context is not an IConfigurableApplicationContext

See Also

AbstractHandlerFactory Class | Spring.Web.Support Namespace