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

Base implementation for IViewComponentFactory
Inheritance: IInitializable, IServiceEnabledComponent, IViewComponentFactory
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

Initializes a new instance of the AbstractViewComponentFactory class.
protected AbstractViewComponentFactory ( ) : System
Résultat System

AddBuiltInComponents() protected méthode

Registers viewcomponents provided by default. CaptureFor SecurityComponent
protected AddBuiltInComponents ( ) : void
Résultat void

Create() public méthode

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

GetViewComponentRegistry() protected méthode

Gets the view component registry.
protected GetViewComponentRegistry ( ) : IViewComponentRegistry
Résultat IViewComponentRegistry

Initialize() public méthode

Invoked by the framework in order to initialize the state
public Initialize ( ) : void
Résultat void

RegisterComponent() protected méthode

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
Résultat void

Release() public méthode

Releases a ViewComponent instance
Not currently used
public Release ( ViewComponent instance ) : void
instance ViewComponent
Résultat void

ResolveType() protected méthode

Resolves the type.
protected ResolveType ( string name ) : Type
name string The name.
Résultat System.Type

Service() public méthode

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