C# Class Castle.MonoRail.Framework.FileAssemblyViewSourceLoader

Default IViewSourceLoader implementation that uses the file system and assembly source as source of view templates
Inheritance: IViewSourceLoader, IServiceEnabledComponent
ファイルを表示 Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
AddAssemblySource ( AssemblySourceInfo assemblySourceInfo ) : void

Adds the assembly source.

GetViewSource ( String templateName ) : IViewSource

Builds and returns a representation of a view template

HasTemplate ( String templateName ) : bool

Evaluates whether the specified template exists.

ListViews ( String dirName ) : String[]

Gets a list of views on the specified directory

Service ( IServiceProvider provider ) : void

Services the specified provider.

Private Methods

Method Description
CollectViewsOnAssemblies ( string dirName, ArrayList views ) : void
CollectViewsOnFileSystem ( string dirName, ArrayList views ) : void
CreateFileInfo ( string templateName ) : FileInfo
DisposeViewFolderWatch ( ) : void
GetStreamFromAdditionalSources ( string templateName ) : IViewSource
HasTemplateOnAssemblies ( string templateName ) : bool
HasTemplateOnFileSystem ( string templateName ) : bool
InitViewFolderWatch ( ) : void
viewFolderWatcher_Changed ( object sender, FileSystemEventArgs e ) : void

Method Details

AddAssemblySource() public method

Adds the assembly source.
public AddAssemblySource ( AssemblySourceInfo assemblySourceInfo ) : void
assemblySourceInfo AssemblySourceInfo The assembly source info.
return void

GetViewSource() public method

Builds and returns a representation of a view template
public GetViewSource ( String templateName ) : IViewSource
templateName String The template name
return IViewSource

HasTemplate() public method

Evaluates whether the specified template exists.
public HasTemplate ( String templateName ) : bool
templateName String The template name
return bool

ListViews() public method

Gets a list of views on the specified directory
public ListViews ( String dirName ) : String[]
dirName String Directory name
return String[]

Service() public method

Services the specified provider.
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The provider.
return void