import FeaturesManager from 'devapt-core-server/js/plugins/features_manager.js'
FeaturesManager
Extends:
Direct Subclass:
Constructor Summary
Public Constructor | ||
public |
constructor(arg_log_context: string | undefined, arg_logger_manager: LoggerManager): nothing Create a features manager instance. |
Member Summary
Public Members | ||
public |
instances: {"all": *} |
|
public |
|
Method Summary
Public Methods | ||
public |
add_instance(arg_instance: object): nothing Register an instance which is created outside this plugins manager. |
|
public |
Create a feature instance by lookup on self contained plugins. |
|
public |
Get class name. |
|
public |
get_feature_class(arg_class_name: string): boolean Get a feature class. |
|
public |
get_instance(arg_class_name: string, arg_name: string): object Get an instance. |
|
public |
Test if a feature class is known into self contained plugins. |
|
public |
has_instance(arg_class_name: string, arg_name: string): boolean Has an instance? |
|
public |
remove_instance(arg_class_name: string, arg_name: string): nothing Remove an instance. |
Inherited Summary
From class PluginsManager | ||
public |
|
|
public |
|
|
public |
|
|
private |
_runtime: * |
|
public |
enabled_plugin(arg_name: string): Plugin Get a enabled plugin by its name. |
|
public |
error_already_registered(arg_plugin_name: string): nothing Error wrapper - on registering an already registered plugin |
|
public |
error_not_registered(arg_plugin_name: string): nothing Error wrapper - a plugin is not registered |
|
public |
Get class name. |
|
public |
get_plugins(): array Get registered plugins list. |
|
public |
get_runtime(): * |
|
public |
get_typed_plugins(arg_type_or_types: string | array): array Get registered plugins list with a filtered type. |
|
public |
load(arg_plugins: array): nothing Load a map of plugins. |
|
public |
load_at_first(arg_plugin: Plugin): nothing Load plugin at first position |
|
public |
Get a registered plugin by its name and its enabled flag. |
|
public |
register_plugin(arg_plugin: object, arg_position: integer): object Register a plugin to be used later, do not active it now. |
|
public |
registered_plugin(arg_name: string): Plugin Get a registered plugin by its name. |
|
public |
unregister_plugin(arg_plugin: object): object Unregister a registered plugin and disble it before if needed. |
Public Constructors
public constructor(arg_log_context: string | undefined, arg_logger_manager: LoggerManager): nothing source
Create a features manager instance.
Override:
PluginsManager#constructorReturn:
nothing |
Public Methods
public add_instance(arg_instance: object): nothing source
Register an instance which is created outside this plugins manager.
Params:
Name | Type | Attribute | Description |
arg_instance | object | feature instance. |
Return:
nothing |
public create(arg_class_name: string, arg_name: string, arg_settings: object, arg_state: object): object source
Create a feature instance by lookup on self contained plugins.
public get_feature_class(arg_class_name: string): boolean source
Get a feature class.
Params:
Name | Type | Attribute | Description |
arg_class_name | string | feature class name. |
public has(arg_class_name: string): boolean source
Test if a feature class is known into self contained plugins.
Params:
Name | Type | Attribute | Description |
arg_class_name | string | feature class name. |