C# Class Castle.MonoRail.Framework.Services.DefaultResourceFactory

Standard implementation of IResourceFactory
Inheritance: IServiceEnabledComponent, IResourceFactory
ファイルを表示 Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Create ( ResourceDescriptor descriptor, Assembly appAssembly ) : IResource

Creates an implementation of IResource based on the descriptor. ResourceManager ResourceFacade

Release ( IResource resource ) : void

Releases a resource

Service ( IServiceProvider provider ) : void

Invoked by the framework in order to give a chance to obtain other services

Private Methods

Method Description
ResolveAssembly ( String name, Assembly assembly ) : Assembly

Resolves the assembly.

ResolveCulture ( String name ) : CultureInfo

Resolves the culture by name.

Method Details

Create() public method

Creates an implementation of IResource based on the descriptor. ResourceManager ResourceFacade
public Create ( ResourceDescriptor descriptor, Assembly appAssembly ) : IResource
descriptor Castle.MonoRail.Framework.Internal.ResourceDescriptor
appAssembly System.Reflection.Assembly
return IResource

Release() public method

Releases a resource
public Release ( IResource resource ) : void
resource IResource
return void

Service() public method

Invoked by the framework in order to give a chance to obtain other services
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The service proviver
return void