import RegistryStore from 'devapt-core-common/js/topology/registry/registry_store.js'
RegistryStore
Extends:
Direct Subclass:
Constructor Summary
Public Constructor | ||
public |
constructor(arg_initial_state: object, arg_log_context: string, arg_logger_manager: LoggerManager): nothing Create RegistryStore instance. |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
root: * |
Method Summary
Public Methods | ||
public |
get_collection(arg_name: *): * |
|
public |
get_collection_item(arg_name: *, arg_item_name: *): * |
|
public |
get_collection_names(arg_name: *): * |
|
public |
get_path_array(arg_path: *): * |
|
public |
get_resource(arg_name: *): * |
|
public |
get_resource_by_type(arg_type: *, arg_name: *): * |
|
public |
get_resource_of_type(arg_type: *, arg_name: *): * |
|
public |
get_resources(arg_set_name: *): * |
|
public |
has_collection(arg_name: *): * |
|
public |
has_collection_item(arg_name: *, arg_item_name: *): * |
|
public |
has_resource(arg_name: *): * |
|
public |
has_resource_by_type(arg_type: *, arg_name: *): * |
|
public |
register_collection(arg_collection_name: string): nothing Register collection methods. |
|
public |
register_resources_collection(arg_collection_name: string, arg_item_name: string): nothing Register resources collection methods. |
|
public |
set_item(arg_path: *, arg_item: *) |
Inherited Summary
From class Loggable | ||
public |
Log context. |
|
public |
Class type flag. |
|
public |
Trace is enabled for this flag. |
|
private |
Logger manager instance (default undefined) |
|
public |
Trace DEBUG formatted message. |
|
public |
disable_trace(): nothing Disable traces. |
|
public |
enable_trace(): nothing Enable traces. |
|
public |
enter_group(arg_group: string): nothing Trace INFO message on "enter trace group". |
|
public |
Trace ERROR formatted message. |
|
public |
Define get class name method for non Instance classes. |
|
public |
Get instance context. |
|
public |
Get logger manager. |
|
public |
Define get instance name method for non Instance classes. |
|
public |
Get trace flag. |
|
public |
Trace INFO formatted message. |
|
public |
leave_group(arg_group: string): nothing Trace INFO message on "leave trace group". |
|
public |
separate_level_1(): nothing Trace INFO trace level 1 separator. |
|
public |
separate_level_2(): nothing Trace INFO trace level 2 separator. |
|
public |
separate_level_3(): nothing Trace INFO trace level 3 separator. |
|
public |
Set trace flag. |
|
public |
should_trace(arg_traces_cfg: object): boolean Calculate should trace flag. |
|
public |
should_trace_class(arg_traces_cfg: object): boolean Calculate should trace flag for classes. |
|
public |
should_trace_collection_item(arg_traces_cfg: object, arg_collection_name: string, arg_this_item_accessor: string): boolean Calculate should trace flag for given collection of names or patterns. |
|
public |
should_trace_module(arg_traces_cfg: object): boolean Calculate should trace flag for modules. |
|
public |
should_trace_name(arg_traces_cfg: object): boolean Calculate should trace flag for instances names. |
|
public |
Toggle trace flag. |
|
public |
update_trace_enabled(): nothing Update trace enabled flag. |
|
public |
Trace WARN formatted message. |
From class StateStore | ||
public |
|
|
public |
|
|
public abstract |
Dispatch a requested action to mutate current state. |
|
public |
dispatch_action(arg_action: object): nothing Dispatch a state action. |
|
public abstract |
Get current state. |
|
public abstract |
Set/Replace current state. |
|
public abstract |
Register a handle on state mutations. |
From class MapStore | ||
public |
|
|
public |
root: * |
|
public |
|
|
public |
Dispatch a requested action to mutate current state. |
|
public |
get_state(): Immutable Get current state. |
|
public |
Set/Replace current state. |
|
public |
Register a handle on state mutations. |
Public Constructors
public constructor(arg_initial_state: object, arg_log_context: string, arg_logger_manager: LoggerManager): nothing source
Create RegistryStore instance.
Override:
MapStore#constructorParams:
Name | Type | Attribute | Description |
arg_initial_state | object | initial state to populate registry. |
|
arg_log_context | string | trace context. |
|
arg_logger_manager | LoggerManager | logger manager object (optional). |
Return:
nothing |
Public Members
public ['get_' + arg_collection_name]: * source
public ['get_' + arg_item_name + '_js']: * source
public ['get_' + arg_item_name]: * source
public ['has_' + arg_item_name]: * source
Public Methods
public get_collection(arg_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_name | * |
Return:
* |
public get_collection_item(arg_name: *, arg_item_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_name | * | ||
arg_item_name | * |
Return:
* |
public get_collection_names(arg_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_name | * |
Return:
* |
public get_path_array(arg_path: *): * source
Params:
Name | Type | Attribute | Description |
arg_path | * |
Return:
* |
public get_resource(arg_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_name | * |
Return:
* |
public get_resource_by_type(arg_type: *, arg_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_type | * | ||
arg_name | * |
Return:
* |
public get_resource_of_type(arg_type: *, arg_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_type | * | ||
arg_name | * |
Return:
* |
public get_resources(arg_set_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_set_name | * |
Return:
* |
public has_collection(arg_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_name | * |
Return:
* |
public has_collection_item(arg_name: *, arg_item_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_name | * | ||
arg_item_name | * |
Return:
* |
public has_resource(arg_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_name | * |
Return:
* |
public has_resource_by_type(arg_type: *, arg_name: *): * source
Params:
Name | Type | Attribute | Description |
arg_type | * | ||
arg_name | * |
Return:
* |
public register_collection(arg_collection_name: string): nothing source
Register collection methods.
Params:
Name | Type | Attribute | Description |
arg_collection_name | string | valid collection name. |
Return:
nothing |
public register_resources_collection(arg_collection_name: string, arg_item_name: string): nothing source
Register resources collection methods.
Return:
nothing |
public set_item(arg_path: *, arg_item: *) source
Params:
Name | Type | Attribute | Description |
arg_path | * | ||
arg_item | * |