See Also

GenericApplicationContext Members  | Spring.Context.Support Namespace

Requirements

Namespace: Spring.Context.Support

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

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

Language

Visual Basic

C#

Show All

See Also Requirements Languages Spring.Core Send comments on this topic.

GenericApplicationContext Class

Spring.Context.Support Namespace : GenericApplicationContext Class

Generic ApplicationContext implementation that holds a single internal DefaultListableObjectFactory instance and does not assume a specific object definition format.

For a list of all members of this type, see GenericApplicationContext members.

Object Model







Inheritance Hierarchy

System.Object
   Spring.Core.IO.ConfigurableResourceLoader
      Spring.Context.Support.AbstractApplicationContext
         Spring.Context.Support.GenericApplicationContext
            Spring.Context.Support.StaticApplicationContext

Syntax

[Visual Basic]
Public Class GenericApplicationContext    Inherits AbstractApplicationContext    Implements IApplicationContextIApplicationEventPublisherIConfigurableApplicationContextIMessageSourceIResourceLoaderIEventRegistryIHierarchicalObjectFactoryIListableObjectFactoryIObjectFactoryIObjectDefinitionRegistry 
[C#]
public class GenericApplicationContext : AbstractApplicationContext, IApplicationContextIApplicationEventPublisherIConfigurableApplicationContextIMessageSourceIResourceLoaderIEventRegistryIHierarchicalObjectFactoryIListableObjectFactoryIObjectFactoryIObjectDefinitionRegistry 

Remarks

Implements the Spring.Objects.Factory.Support.IObjectDefinitionRegistry interface in order to allow for aplying any object definition readers to it.

Typical usage is to register a variety of object definitions via the Spring.Objects.Factory.Support.IObjectDefinitionRegistry interface and then call IConfigurableApplicationContext.Refresh to initialize those objects with application context semantics (handling IApplicationContextAware, auto-detecting Spring.Objects.Factory.Config.IObjectPostProcessor ObjectFactoryPostProcessors, etc).

In contrast to other IApplicationContext implementations that create a new internal IObjectFactory instance for each refresh, the internal IObjectFactory of this context is available right from the start, to be able to register object definitions on it. IConfigurableApplicationContext.Refresh may only be called once

Usage examples

GenericApplicationContext ctx = new GenericApplicationContext();

Requirements

Namespace: Spring.Context.Support

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

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

See Also

GenericApplicationContext Members  | Spring.Context.Support Namespace

 

 


© 2004-2007 Spring.NET Authors. All Rights Reserved.