ControllerManager
Class
ControllerManager
Hierarchy
↳ ControllerManager
Implements
Index
Constructors
Properties
Methods
- configure
- get
- getController
- has
- loadDirectory
- loadFromLocations
- registerAlias
- registerAliases
- registerController
- registerControllers
- registerFactories
- registerFactory
- registerInvokable
- registerService
- getControllerName
Constructors
constructor
new ControllerManager(creationContext: ServiceManager, config: ControllerManagerConfigType): ControllerManager
Overrides AbstractPluginManager.constructor
Defined in Library/Controller/ControllerManager.ts:8
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:85
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:34
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:56
Parameters:
Name | Type |
---|---|
controller | ControllerType |
Returns: Object
has
has<T
>(Service: ServiceKeyType<T
>): boolean
Inherited from ServiceManager.has
Defined in Library/ServiceManager/ServiceManager.ts:59
Type parameters:
T
Parameters:
Name | Type |
---|---|
Service | ServiceKeyType<T > |
Returns: boolean
loadDirectory
loadDirectory(controllerDirectory: string
): void
Defined in Library/Controller/ControllerManager.ts:31
Parameters:
Name | Type |
---|---|
controllerDirectory | string |
Returns: void
loadFromLocations
loadFromLocations(controllerDirectories: string
[]): this
Defined in Library/Controller/ControllerManager.ts:25
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:125
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:119
Parameters:
Name | Type |
---|---|
aliases | AliasesType |
Returns: this
Protected
registerController
registerController(Controller: AbstractActionController): this
Defined in Library/Controller/ControllerManager.ts:66
Parameters:
Name | Type |
---|---|
Controller | AbstractActionController |
Returns: this
Protected
registerControllers
registerControllers(controllers: Array
<AbstractActionController>): this
Defined in Library/Controller/ControllerManager.ts:60
Parameters:
Name | Type |
---|---|
controllers | Array <AbstractActionController> |
Returns: this
registerFactories
registerFactories(factories: FactoriesMapType): this
Inherited from ServiceManager.registerFactories
Defined in Library/ServiceManager/ServiceManager.ts:71
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:65
Parameters:
Name | Type |
---|---|
key | Function | string |
value | ServiceFactoryType<Object > |
Returns: this
registerInvokable
registerInvokable(key: ServiceKeyType<Object
>, value: Instantiable<Object
>): void
Inherited from ServiceManager.registerInvokable
Defined in Library/ServiceManager/ServiceManager.ts:115
Parameters:
Name | Type |
---|---|
key | ServiceKeyType<Object > |
value | Instantiable<Object > |
Returns: void
registerService
registerService(key: * Function
| string
*, service: Object
): this
Inherited from ServiceManager.registerService
Defined in Library/ServiceManager/ServiceManager.ts:79
Parameters:
Name | Type |
---|---|
key | Function | string |
service | Object |
Returns: this
Static
getControllerName
getControllerName(controller: ControllerType): string
Defined in Library/Controller/ControllerManager.ts:17
Parameters:
Name | Type |
---|---|
controller | ControllerType |
Returns: string