Reference Source
public class | source

DefaultServicesPlugin

Extends:

devapt-core-common/dist/js/plugins/services_plugin~ServicesPlugin → DefaultServicesPlugin

Plugin class for default services.

Constructor Summary

Public Constructor
public

constructor(arg_runtime: RuntimeBase, arg_manager: PluginsManager): nothing

Create a DefaultServicesPlugin instance.

Member Summary

Private Members
private

Services classes.

Method Summary

Public Methods
public

create(arg_class_name: string, arg_name: string, arg_settings: object, arg_state: object): object

Create a component instance.

public

get_feature_class(arg_class_name: string): object

Get a feature class.

public

has(arg_class_name: string): boolean

Test if a feature class is known into self contained plugins.

Public Constructors

public constructor(arg_runtime: RuntimeBase, arg_manager: PluginsManager): nothing source

Create a DefaultServicesPlugin instance.

Params:

NameTypeAttributeDescription
arg_runtime RuntimeBase

runtime instance.

arg_manager PluginsManager

plugins manager.

Return:

nothing

Private Members

private _services_classes: object source

Services classes.

Public Methods

public create(arg_class_name: string, arg_name: string, arg_settings: object, arg_state: object): object source

Create a component instance.

Params:

NameTypeAttributeDescription
arg_class_name string

type or class feature name.

arg_name string

feature name.

arg_settings object

feature settings plain object.

arg_state object

feature initial state plain object (optional).

Return:

object

feature instance.

public get_feature_class(arg_class_name: string): object source

Get a feature class.

Params:

NameTypeAttributeDescription
arg_class_name string

feature class name.

Return:

object

feature class.

public has(arg_class_name: string): boolean source

Test if a feature class is known into self contained plugins.

Params:

NameTypeAttributeDescription
arg_class_name string

feature class name.

Return:

boolean

feature class found or not.