Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ContextRegistry Class

Provides access to a central registry of IApplicationContexts.

For a list of all members of this type, see ContextRegistry Members .

System.Object
   ContextRegistry

[Visual Basic]
Public NotInheritable Class ContextRegistry
[C#]
public sealed class ContextRegistry

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

A singleton implementation to access one or more application contexts. Application context instances are cached.

Note that the use of this class or similar is unnecessary except (sometimes) for a small amount of glue code. Excessive usage will lead to code that is more tightly coupled, and harder to modify or test. Consider refactoring your code to use standard Dependency Injection techniques or implement the interface IApplicationContextAware to obtain a reference to an application context.

Requirements

Namespace: Spring.Context.Support

Assembly: Spring.Core (in Spring.Core.dll)

See Also

ContextRegistry Members | Spring.Context.Support Namespace | IApplicationContext