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

Base implementation for IViewComponentFactory
Inheritance: IInitializable, IServiceEnabledComponent, IViewComponentFactory
Exibir arquivo Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Create ( String name ) : ViewComponent

Creates an instance of the requested ViewComponent

Initialize ( ) : void

Invoked by the framework in order to initialize the state

Release ( ViewComponent instance ) : void

Releases a ViewComponent instance

Not currently used

Service ( IServiceProvider provider ) : void

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

Protected Methods

Method Description
AbstractViewComponentFactory ( ) : System

Initializes a new instance of the AbstractViewComponentFactory class.

AddBuiltInComponents ( ) : void

Registers viewcomponents provided by default. CaptureFor SecurityComponent

GetViewComponentRegistry ( ) : IViewComponentRegistry

Gets the view component registry.

RegisterComponent ( String name, Type type ) : void

Registers a view component type.

ResolveType ( string name ) : Type

Resolves the type.

Method Details

AbstractViewComponentFactory() protected method

Initializes a new instance of the AbstractViewComponentFactory class.
protected AbstractViewComponentFactory ( ) : System
return System

AddBuiltInComponents() protected method

Registers viewcomponents provided by default. CaptureFor SecurityComponent
protected AddBuiltInComponents ( ) : void
return void

Create() public method

Creates an instance of the requested ViewComponent
public Create ( String name ) : ViewComponent
name String The view component's name
return ViewComponent

GetViewComponentRegistry() protected method

Gets the view component registry.
protected GetViewComponentRegistry ( ) : IViewComponentRegistry
return IViewComponentRegistry

Initialize() public method

Invoked by the framework in order to initialize the state
public Initialize ( ) : void
return void

RegisterComponent() protected method

Registers a view component type.
protected RegisterComponent ( String name, Type type ) : void
name String The view components's name
type System.Type The view component's which must extend
return void

Release() public method

Releases a ViewComponent instance
Not currently used
public Release ( ViewComponent instance ) : void
instance ViewComponent
return void

ResolveType() protected method

Resolves the type.
protected ResolveType ( string name ) : Type
name string The name.
return System.Type

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