ControllerManager
Class ControllerManager
Hierarchy
↳ AbstractFileBasedPluginManager
↳ ControllerManager
Implements
Index
Constructors
Properties
Methods
- configure
- get
- getController
- getPlugin
- has
- loadDirectory
- loadFromLocations
- registerAlias
- registerAliases
- registerFactories
- registerFactory
- registerInvokable
- registerPlugin
- registerPlugins
- registerService
- getPluginName
Constructors
constructor
new ControllerManager(creationContext: ServiceManager, config?: ControllerManagerConfigType): ControllerManager
Overrides AbstractFileBasedPluginManager.constructor
Defined in Library/Controller/ControllerManager.ts:5
Parameters:
| Name | Type | Default value |
|---|---|---|
| creationContext | ServiceManager | - |
Default value 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: Instantiable<Object>): Object
Defined in Library/Controller/ControllerManager.ts:12
Parameters:
| Name | Type |
|---|---|
| Controller | Instantiable<Object> |
Returns: Object
getPlugin
getPlugin(plugin: Instantiable<Object>): Object
Inherited from AbstractFileBasedPluginManager.getPlugin
Defined in Library/ServiceManager/AbstractFileBasedPluginManager.ts:78
Parameters:
| Name | Type |
|---|---|
| plugin | Instantiable<Object> |
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(pluginDirectory: string): void
Inherited from AbstractFileBasedPluginManager.loadDirectory
Defined in Library/ServiceManager/AbstractFileBasedPluginManager.ts:35
Parameters:
| Name | Type |
|---|---|
| pluginDirectory | string |
Returns: void
loadFromLocations
loadFromLocations(pluginDirectories?: string[]): this
Inherited from AbstractFileBasedPluginManager.loadFromLocations
Defined in Library/ServiceManager/AbstractFileBasedPluginManager.ts:27
Parameters:
| Name | Type |
|---|---|
Optional pluginDirectories | 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
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
Protected registerPlugin
registerPlugin(Plugin: Instantiable<Object>): this
Inherited from AbstractFileBasedPluginManager.registerPlugin
Defined in Library/ServiceManager/AbstractFileBasedPluginManager.ts:88
Parameters:
| Name | Type |
|---|---|
| Plugin | Instantiable<Object> |
Returns: this
Protected registerPlugins
registerPlugins(plugins: Array<Instantiable<Object>>): this
Inherited from AbstractFileBasedPluginManager.registerPlugins
Defined in Library/ServiceManager/AbstractFileBasedPluginManager.ts:82
Parameters:
| Name | Type |
|---|---|
| plugins | Array<Instantiable<Object>> |
Returns: this
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 getPluginName
getPluginName(plugin: FileBasedPluginType): string
Inherited from AbstractFileBasedPluginManager.getPluginName
Defined in Library/ServiceManager/AbstractFileBasedPluginManager.ts:19
Parameters:
| Name | Type |
|---|---|
| plugin | FileBasedPluginType |
Returns: string