C# Class Spring.Context.Support.XmlApplicationContext

An Spring.Context.IApplicationContext implementation that reads context definitions from XML based resources.

Currently, the resources that are supported are the file, http, ftp, config and assembly resource types.

You can provide custom implementations of the Spring.Core.IO.IResource interface and and register them with any Spring.Context.IApplicationContext that inherits from the Spring.Context.Support.AbstractApplicationContext interface.

In case of multiple config locations, later object definitions will override ones defined in previously loaded resources. This can be leveraged to deliberately override certain object definitions via an extra XML file.
Inheritance: Spring.Context.Support.AbstractXmlApplicationContext
Show file Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
XmlApplicationContext ( ) : Spring.Core.IO

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations.

The created context will be case sensitive.

XmlApplicationContext ( IApplicationContext parentContext ) : Spring.Core.IO

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations, with the given parentContext.

XmlApplicationContext ( Spring.Context.Support.XmlApplicationContextArgs args ) : Spring.Core.IO

Initializes a new instance of the XmlApplicationContext class.

XmlApplicationContext ( bool caseSensitive ) : Spring.Core.IO

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations.

XmlApplicationContext ( bool caseSensitive, IApplicationContext parentContext ) : Spring.Core.IO

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations, with the given parentContext.

XmlApplicationContext ( bool refresh, string name, bool caseSensitive, IApplicationContext parentContext ) : Spring.Core.IO

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations, with the given parentContext.

This constructor is meant to be used by derived classes. By passing refresh=false, it is the responsibility of the deriving class to call AbstractApplicationContext.Refresh() to initialize the context instance.

XmlApplicationContext ( bool refresh, string name, bool caseSensitive, IApplicationContext parentContext, string configurationLocations, IResource configurationResources ) : Spring.Core.IO
XmlApplicationContext ( string name, bool caseSensitive ) : Spring.Core.IO

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations.

XmlApplicationContext ( string name, bool caseSensitive, IApplicationContext parentContext ) : Spring.Core.IO

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations, with the given parentContext.

Method Details

XmlApplicationContext() public method

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations.
The created context will be case sensitive.
public XmlApplicationContext ( ) : Spring.Core.IO
return Spring.Core.IO

XmlApplicationContext() public method

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations, with the given parentContext.
public XmlApplicationContext ( IApplicationContext parentContext ) : Spring.Core.IO
parentContext IApplicationContext /// The parent context (may be ). ///
return Spring.Core.IO

XmlApplicationContext() public method

Initializes a new instance of the XmlApplicationContext class.
public XmlApplicationContext ( Spring.Context.Support.XmlApplicationContextArgs args ) : Spring.Core.IO
args Spring.Context.Support.XmlApplicationContextArgs
return Spring.Core.IO

XmlApplicationContext() public method

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations.
public XmlApplicationContext ( bool caseSensitive ) : Spring.Core.IO
caseSensitive bool Flag specifying whether to make this context case sensitive or not.
return Spring.Core.IO

XmlApplicationContext() public method

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations, with the given parentContext.
public XmlApplicationContext ( bool caseSensitive, IApplicationContext parentContext ) : Spring.Core.IO
caseSensitive bool Flag specifying whether to make this context case sensitive or not.
parentContext IApplicationContext /// The parent context (may be ). ///
return Spring.Core.IO

XmlApplicationContext() public method

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations, with the given parentContext.
This constructor is meant to be used by derived classes. By passing refresh=false, it is the responsibility of the deriving class to call AbstractApplicationContext.Refresh() to initialize the context instance.
public XmlApplicationContext ( bool refresh, string name, bool caseSensitive, IApplicationContext parentContext ) : Spring.Core.IO
refresh bool if true, is called automatically.
name string The application context name.
caseSensitive bool Flag specifying whether to make this context case sensitive or not.
parentContext IApplicationContext /// The parent context (may be ). ///
return Spring.Core.IO

XmlApplicationContext() public method

public XmlApplicationContext ( bool refresh, string name, bool caseSensitive, IApplicationContext parentContext, string configurationLocations, IResource configurationResources ) : Spring.Core.IO
refresh bool
name string
caseSensitive bool
parentContext IApplicationContext
configurationLocations string
configurationResources IResource
return Spring.Core.IO

XmlApplicationContext() public method

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations.
public XmlApplicationContext ( string name, bool caseSensitive ) : Spring.Core.IO
name string The application context name.
caseSensitive bool Flag specifying whether to make this context case sensitive or not.
return Spring.Core.IO

XmlApplicationContext() public method

Creates a new instance of the Spring.Context.Support.XmlApplicationContext class, loading the definitions from the supplied XML resource locations, with the given parentContext.
public XmlApplicationContext ( string name, bool caseSensitive, IApplicationContext parentContext ) : Spring.Core.IO
name string The application context name.
caseSensitive bool Flag specifying whether to make this context case sensitive or not.
parentContext IApplicationContext /// The parent context (may be ). ///
return Spring.Core.IO