C# Class Castle.MonoRail.WindsorExtension.ControllerTreeAccessor

Bridge between the windsor controlled controller tree and the monorail service provider.
Inheritance: IControllerTree
ファイルを表示 Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
AddController ( string areaName, string controllerName, Type controller ) : void

Register a controller on the tree. If the specified area name matches the current node, the controller is register on the node itself, otherwise on the right or on the left node.

Note that the controller is an object. That allows different implementation of a controller factory to register different representation of what a controller is (a name, a descriptor etc)

ControllerTreeAccessor ( ) : System

Construct the controller tree accessor

GetController ( string areaName, string controllerName ) : Type

Returns a controller previously registered.

Method Details

AddController() public method

Register a controller on the tree. If the specified area name matches the current node, the controller is register on the node itself, otherwise on the right or on the left node.
Note that the controller is an object. That allows different implementation of a controller factory to register different representation of what a controller is (a name, a descriptor etc)
public AddController ( string areaName, string controllerName, Type controller ) : void
areaName string The area name, or String.Empty
controllerName string The controller name
controller System.Type The controller representation
return void

ControllerTreeAccessor() public method

Construct the controller tree accessor
public ControllerTreeAccessor ( ) : System
return System

GetController() public method

Returns a controller previously registered.
public GetController ( string areaName, string controllerName ) : Type
areaName string The area name, or String.Empty
controllerName string The controller name
return System.Type