ControllerManager
Class ControllerManager
Hierarchy
↳ ControllerManager
Implements
Index
Constructors
Properties
Methods
- configure
- get
- getController
- has
- loadControllers
- registerController
- registerControllers
- registerFactories
- registerFactory
- registerService
- getControllerName
Constructors
constructor
new ControllerManager(creationContext: ServiceManager, config: ControllerManagerConfigType): ControllerManager
Overrides AbstractPluginManager.constructor
Defined in Library/Controller/ControllerManager.ts:10
Parameters:
| Name | Type |
|---|---|
| creationContext | ServiceManager |
| config | ControllerManagerConfigType |
Returns: ControllerManager
Properties
Protected creationContext
creationContext: ServiceManager
Inherited from AbstractPluginManager.creationContext
Overrides ServiceManager.creationContext
Defined in Library/ServiceManager/AbstractPluginManager.ts:5
Methods
configure
configure(config: ServiceManagerConfigType): this
Inherited from ServiceManager.configure
Defined in Library/ServiceManager/ServiceManager.ts:78
Parameters:
| Name | Type |
|---|---|
| config | ServiceManagerConfigType |
Returns: this
get
get<T>(Service: ServiceKeyType<T>, forceTransient?: boolean): T
Inherited from ServiceManager.get
Defined in Library/ServiceManager/ServiceManager.ts:31
Type parameters:
T
Parameters:
| Name | Type | Default value |
|---|---|---|
| Service | ServiceKeyType<T> | - |
Default value forceTransient | boolean | false |
Returns: T
getController
getController(controller: ControllerType): Object
Defined in Library/Controller/ControllerManager.ts:52
Parameters:
| Name | Type |
|---|---|
| controller | ControllerType |
Returns: Object
has
has<T>(Service: ServiceKeyType<T>): boolean
Inherited from ServiceManager.has
Defined in Library/ServiceManager/ServiceManager.ts:52
Type parameters:
T
Parameters:
| Name | Type |
|---|---|
| Service | ServiceKeyType<T> |
Returns: boolean
loadControllers
loadControllers(controllerDirectory: string): void
Defined in Library/Controller/ControllerManager.ts:27
Parameters:
| Name | Type |
|---|---|
| controllerDirectory | string |
Returns: void
Protected registerController
registerController(Controller: AbstractActionController): this
Defined in Library/Controller/ControllerManager.ts:62
Parameters:
| Name | Type |
|---|---|
| Controller | AbstractActionController |
Returns: this
Protected registerControllers
registerControllers(controllers: Array<AbstractActionController>): this
Defined in Library/Controller/ControllerManager.ts:56
Parameters:
| Name | Type |
|---|---|
| controllers | Array<AbstractActionController> |
Returns: this
registerFactories
registerFactories(factories: FactoriesMapType): this
Inherited from ServiceManager.registerFactories
Defined in Library/ServiceManager/ServiceManager.ts:64
Parameters:
| Name | Type |
|---|---|
| factories | FactoriesMapType |
Returns: this
registerFactory
registerFactory(key: * Function | string*, value: ServiceFactoryType<Object>): this
Inherited from ServiceManager.registerFactory
Defined in Library/ServiceManager/ServiceManager.ts:58
Parameters:
| Name | Type |
|---|---|
| key | Function | string |
| value | ServiceFactoryType<Object> |
Returns: this
registerService
registerService(key: * Function | string*, service: Object): this
Inherited from ServiceManager.registerService
Defined in Library/ServiceManager/ServiceManager.ts:72
Parameters:
| Name | Type |
|---|---|
| key | Function | string |
| service | Object |
Returns: this
Static getControllerName
getControllerName(controller: ControllerType): string
Defined in Library/Controller/ControllerManager.ts:19
Parameters:
| Name | Type |
|---|---|
| controller | ControllerType |
Returns: string