C# 클래스 Castle.MonoRail.Framework.Services.DefaultControllerTree

Default implementation of IControllerTree. Represents an binary tree of registered controllers.

It is used by the controller factory to resolve a controller instance based on the specified area (which is optional) and controller name

IControllerTree Castle.MonoRail.Framework.Services.AbstractControllerFactory
상속: IControllerTree
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
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)

DefaultControllerTree ( ) : System

Constructs a ControllerTree with an empty area

DefaultControllerTree ( String areaName ) : System

Constructs a ControllerTree specifying an area

GetController ( String areaName, String controllerName ) : Type

Returns a controller previously registered.

메소드 상세

AddController() 공개 메소드

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
리턴 void

DefaultControllerTree() 공개 메소드

Constructs a ControllerTree with an empty area
public DefaultControllerTree ( ) : System
리턴 System

DefaultControllerTree() 공개 메소드

Constructs a ControllerTree specifying an area
public DefaultControllerTree ( String areaName ) : System
areaName String
리턴 System

GetController() 공개 메소드

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
리턴 System.Type