C# Класс Castle.MonoRail.Framework.Services.AbstractViewComponentFactory

Base implementation for IViewComponentFactory
Наследование: IInitializable, IServiceEnabledComponent, IViewComponentFactory
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Описание методов

AbstractViewComponentFactory() защищенный Метод

Initializes a new instance of the AbstractViewComponentFactory class.
protected AbstractViewComponentFactory ( ) : System
Результат System

AddBuiltInComponents() защищенный Метод

Registers viewcomponents provided by default. CaptureFor SecurityComponent
protected AddBuiltInComponents ( ) : void
Результат void

Create() публичный Метод

Creates an instance of the requested ViewComponent
public Create ( String name ) : ViewComponent
name String The view component's name
Результат ViewComponent

GetViewComponentRegistry() защищенный Метод

Gets the view component registry.
protected GetViewComponentRegistry ( ) : IViewComponentRegistry
Результат IViewComponentRegistry

Initialize() публичный Метод

Invoked by the framework in order to initialize the state
public Initialize ( ) : void
Результат void

RegisterComponent() защищенный Метод

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
Результат void

Release() публичный Метод

Releases a ViewComponent instance
Not currently used
public Release ( ViewComponent instance ) : void
instance ViewComponent
Результат void

ResolveType() защищенный Метод

Resolves the type.
protected ResolveType ( string name ) : Type
name string The name.
Результат System.Type

Service() публичный Метод

Invoked by the framework in order to give a chance to obtain other services
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The service proviver
Результат void