ControllerManager
Class
ControllerManager
Hierarchy
ControllerManager
Index
Constructors
Properties
Methods
Constructors
constructor
new ControllerManager(config: ControllerManagerConfigInterface): ControllerManager
Defined in Library/Controller/ControllerManager.ts:17
Parameters:
Name | Type |
---|---|
config | ControllerManagerConfigInterface |
Returns: ControllerManager
Properties
Private
config
config: ControllerManagerConfigInterface
Defined in Library/Controller/ControllerManager.ts:9
Private
controllers
controllers: object
Defined in Library/Controller/ControllerManager.ts:7
Type declaration
Methods
getController
getController(controller: ControllerType): Object
Defined in Library/Controller/ControllerManager.ts:50
Parameters:
Name | Type |
---|---|
controller | ControllerType |
Returns: Object
loadControllers
loadControllers(controllerDirectory: string
): void
Defined in Library/Controller/ControllerManager.ts:25
Parameters:
Name | Type |
---|---|
controllerDirectory | string |
Returns: void
registerController
registerController(Controller: ControllerInterface): this
Defined in Library/Controller/ControllerManager.ts:60
Parameters:
Name | Type |
---|---|
Controller | ControllerInterface |
Returns: this
registerControllers
registerControllers(controllers: Array
<ControllerInterface>): this
Defined in Library/Controller/ControllerManager.ts:54
Parameters:
Name | Type |
---|---|
controllers | Array <ControllerInterface> |
Returns: this
Static
getControllerName
getControllerName(controller: ControllerType): string
Defined in Library/Controller/ControllerManager.ts:11
Parameters:
Name | Type |
---|---|
controller | ControllerType |
Returns: string