C# 클래스 Spring.Context.Support.WebApplicationContext

Web application context, taking the context definition files from the file system or from URLs. Treats resource paths as web resources, when using IApplicationContext.GetResource. Resource paths are considered relative to the virtual directory. Note: In case of multiple config locations, later object definitions will override ones defined in earlier loaded files. This can be leveraged to deliberately override certain object definitions via an extra XML file.
상속: Spring.Context.Support.AbstractXmlApplicationContext
파일 보기 프로젝트 열기: spring-projects/spring-net 1 사용 예제들

공개 메소드들

메소드 설명
GetContext ( string virtualPath ) : IApplicationContext

Returns the web application context for the given (absolute!) virtual path

GetRootContext ( ) : IApplicationContext

Returns the root context of this web application

ToString ( ) : string

returns detailed instance information for debugging

WebApplicationContext ( ) : System

Create a new WebApplicationContext, loading the definitions from the given XML resource.

WebApplicationContext ( WebApplicationContextArgs args ) : System

Initializes a new instance of the WebApplicationContext class.

WebApplicationContext ( string name, bool caseSensitive ) : System

Create a new WebApplicationContext, loading the definitions from the given XML resource.

WebApplicationContext ( string name, bool caseSensitive, IApplicationContext parentContext ) : System

Create a new WebApplicationContext with the given parent, loading the definitions from the given XML resources.

WebApplicationContext ( string name, bool caseSensitive, string configurationLocations, IResource configurationResources ) : System

Create a new WebApplicationContext, loading the definitions from the given XML resource.

보호된 메소드들

메소드 설명
CreateObjectFactory ( ) : Spring.Objects.Factory.Support.DefaultListableObjectFactory

Creates web object factory for this context using parent context's factory as a parent.

CreateXmlObjectDefinitionReader ( Spring.Objects.Factory.Support.DefaultListableObjectFactory objectFactory ) : Spring.Objects.Factory.Xml.XmlObjectDefinitionReader

Create a reader instance capable of handling web objects (Pages,Controls) for importing o bject definitions into the specified objectFactory.

InitObjectDefinitionReader ( Spring.Objects.Factory.Xml.XmlObjectDefinitionReader objectDefinitionReader ) : void

Initializes object definition reader.

비공개 메소드들

메소드 설명
GetContextInternal ( string virtualPath ) : IApplicationContext
GetContextPathWithTrailingSlash ( ) : string

Returns the application-relative virtual path of this context (without leading '~'!).

OnContextRegistryCleared ( object sender, EventArgs ev ) : void

EventHandler for ContextRegistry.Cleared event. Discards webContextCache.

메소드 상세

CreateObjectFactory() 보호된 메소드

Creates web object factory for this context using parent context's factory as a parent.
protected CreateObjectFactory ( ) : Spring.Objects.Factory.Support.DefaultListableObjectFactory
리턴 Spring.Objects.Factory.Support.DefaultListableObjectFactory

CreateXmlObjectDefinitionReader() 보호된 메소드

Create a reader instance capable of handling web objects (Pages,Controls) for importing o bject definitions into the specified objectFactory.
protected CreateXmlObjectDefinitionReader ( Spring.Objects.Factory.Support.DefaultListableObjectFactory objectFactory ) : Spring.Objects.Factory.Xml.XmlObjectDefinitionReader
objectFactory Spring.Objects.Factory.Support.DefaultListableObjectFactory
리턴 Spring.Objects.Factory.Xml.XmlObjectDefinitionReader

GetContext() 공개 정적인 메소드

Returns the web application context for the given (absolute!) virtual path
public static GetContext ( string virtualPath ) : IApplicationContext
virtualPath string
리턴 IApplicationContext

GetRootContext() 공개 정적인 메소드

Returns the root context of this web application
public static GetRootContext ( ) : IApplicationContext
리턴 IApplicationContext

InitObjectDefinitionReader() 보호된 메소드

Initializes object definition reader.
protected InitObjectDefinitionReader ( Spring.Objects.Factory.Xml.XmlObjectDefinitionReader objectDefinitionReader ) : void
objectDefinitionReader Spring.Objects.Factory.Xml.XmlObjectDefinitionReader Reader to initialize.
리턴 void

ToString() 공개 메소드

returns detailed instance information for debugging
public ToString ( ) : string
리턴 string

WebApplicationContext() 공개 메소드

Create a new WebApplicationContext, loading the definitions from the given XML resource.
public WebApplicationContext ( ) : System
리턴 System

WebApplicationContext() 공개 메소드

Initializes a new instance of the WebApplicationContext class.
public WebApplicationContext ( WebApplicationContextArgs args ) : System
args WebApplicationContextArgs The args.
리턴 System

WebApplicationContext() 공개 메소드

Create a new WebApplicationContext, loading the definitions from the given XML resource.
public WebApplicationContext ( string name, bool caseSensitive ) : System
name string The application context name.
caseSensitive bool Flag specifying whether to make this context case sensitive or not.
리턴 System

WebApplicationContext() 공개 메소드

Create a new WebApplicationContext with the given parent, loading the definitions from the given XML resources.
public WebApplicationContext ( string name, bool caseSensitive, IApplicationContext parentContext ) : System
name string The application context name.
caseSensitive bool Flag specifying whether to make this context case sensitive or not.
parentContext IApplicationContext The parent context.
리턴 System

WebApplicationContext() 공개 메소드

Create a new WebApplicationContext, loading the definitions from the given XML resource.
public WebApplicationContext ( string name, bool caseSensitive, string configurationLocations, IResource configurationResources ) : System
name string The application context name.
caseSensitive bool Flag specifying whether to make this context case sensitive or not.
configurationLocations string Names of configuration resources.
configurationResources IResource Configuration resources.
리턴 System