C# 클래스 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.
상속: Spring.Context.Support.AbstractXmlApplicationContext
파일 보기 프로젝트 열기: spring-projects/spring-net 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

XmlApplicationContext() 공개 메소드

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
리턴 Spring.Core.IO

XmlApplicationContext() 공개 메소드

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 ). ///
리턴 Spring.Core.IO

XmlApplicationContext() 공개 메소드

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

XmlApplicationContext() 공개 메소드

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.
리턴 Spring.Core.IO

XmlApplicationContext() 공개 메소드

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 ). ///
리턴 Spring.Core.IO

XmlApplicationContext() 공개 메소드

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 ). ///
리턴 Spring.Core.IO

XmlApplicationContext() 공개 메소드

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
리턴 Spring.Core.IO

XmlApplicationContext() 공개 메소드

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.
리턴 Spring.Core.IO

XmlApplicationContext() 공개 메소드

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 ). ///
리턴 Spring.Core.IO