ControllerManager
Class
ControllerManager
Hierarchy
↳ ControllerManager
Implements
Index
Constructors
Properties
Methods
- configure
- get
- getController
- has
- loadDirectory
- loadFromLocations
- registerAlias
- registerAliases
- 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:80
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:32
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:58
Parameters:
Name | Type |
---|---|
controller | ControllerType |
Returns: Object
has
has<T
>(Service: ServiceKeyType<T
>): boolean
Inherited from ServiceManager.has
Defined in Library/ServiceManager/ServiceManager.ts:54
Type parameters:
T
Parameters:
Name | Type |
---|---|
Service | ServiceKeyType<T > |
Returns: boolean
loadDirectory
loadDirectory(controllerDirectory: string
): void
Defined in Library/Controller/ControllerManager.ts:33
Parameters:
Name | Type |
---|---|
controllerDirectory | string |
Returns: void
loadFromLocations
loadFromLocations(controllerDirectories: string
[]): this
Defined in Library/Controller/ControllerManager.ts:27
Parameters:
Name | Type |
---|---|
controllerDirectories | string [] |
Returns: this
registerAlias
registerAlias(alias: string
, to: * string
| Function
*): this
Inherited from ServiceManager.registerAlias
Defined in Library/ServiceManager/ServiceManager.ts:116
Parameters:
Name | Type |
---|---|
alias | string |
to | string | Function |
Returns: this
registerAliases
registerAliases(aliases: AliasesType): this
Inherited from ServiceManager.registerAliases
Defined in Library/ServiceManager/ServiceManager.ts:110
Parameters:
Name | Type |
---|---|
aliases | AliasesType |
Returns: this
Protected
registerController
registerController(Controller: AbstractActionController): this
Defined in Library/Controller/ControllerManager.ts:68
Parameters:
Name | Type |
---|---|
Controller | AbstractActionController |
Returns: this
Protected
registerControllers
registerControllers(controllers: Array
<AbstractActionController>): this
Defined in Library/Controller/ControllerManager.ts:62
Parameters:
Name | Type |
---|---|
controllers | Array <AbstractActionController> |
Returns: this
registerFactories
registerFactories(factories: FactoriesMapType): this
Inherited from ServiceManager.registerFactories
Defined in Library/ServiceManager/ServiceManager.ts:66
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:60
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:74
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