| Visual Basic (Declaration) | |
|---|---|
Public Interface IApplicationContext Inherits IApplicationEventPublisher, IMessageSource, IResourceLoader, IEventRegistry, IHierarchicalObjectFactory, IListableObjectFactory, IObjectFactory | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public interface IApplicationContext : IApplicationEventPublisher, IMessageSource, IResourceLoader, IEventRegistry, IHierarchicalObjectFactory, IListableObjectFactory, IObjectFactory | |
IApplicationContext implementations provide:
Object factory functionality inherited from the IListableObjectFactory and IHierarchicalObjectFactory interfaces. The ability to resolve messages, supporting internationalization. Inherited from the IMessageSource interface. The ability to load file resources in a generic fashion. Inherited from the IResourceLoader interface. Acts an an event registry for supporting loosely coupled eventing between objecs. Inherited from the IEventRegistry interface. The ability to raise events related to the context lifecycle. Inherited from the IApplicationEventPublisher interface. Inheritance from a parent context. Definitions in a descendant context will always take priority.
In addition to standard object factory lifecycle capabilities, IApplicationContext implementations need to detect IApplicationContextAware, IEventRegistryAware, and IMessageSourceAware objects and supply their attendant dependencies accordingly.
This interface is the central client interface in Spring.NET's IoC container implementation. As such it does inherit a quite sizeable number of interfaces; implementations are strongly encouraged to use composition to satisfy each of the inherited interfaces (where appropriate of course).
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family