File

src/core/smart-data-source/datasource-registry.service.ts

Index

Properties
Methods

Constructor

constructor()

Methods

Public deregisterDataSource
deregisterDataSource(name: string)

Deregisters the SmartDataSource instance registered under the given name, allowing another SmartDataSource to use said name.

Parameters :
Name Type Optional
name string No
Returns : void
Public getDataSource
getDataSource(name: string)

Returns the SmartDataSource instance registered under the given name.

Parameters :
Name Type Optional
name string No
Returns : SmartDataSource
Public getDataSourceAsObservable
getDataSourceAsObservable(dataSourceName: string)

Returns an observable that emits when the data source is registered. If the data source has already been registered, the observable will emit immediately.

Parameters :
Name Type Optional Description
dataSourceName string No

the smart object name of the data source

Public registerDataSource
registerDataSource(name: string, dataSource: SmartDataSource)

Registers a SmartDataSource with this registry instance. Throws an error if a SmartDataSource has been already registered under the given name

Parameters :
Name Type Optional
name string No
dataSource SmartDataSource No
Returns : any

Properties

Public dataSourceAdded
Type : EventEmitter<DataSourceRegistryEventArgs>
Default value : new EventEmitter<DataSourceRegistryEventArgs>()
Public dataSourceRemoved
Type : EventEmitter<DataSourceRegistryEventArgs>
Default value : new EventEmitter<DataSourceRegistryEventArgs>()

result-matching ""

    No results matching ""