Skip to main content

ConfigurationProvider

@webda/core


Interface: ConfigurationProvider

Defined in: packages/core/src/configurations/configuration.service.ts:12

Service that can store configuration

Methods​

canTriggerConfiguration()​

canTriggerConfiguration(id, callback, defaultValue?): boolean

Defined in: packages/core/src/configurations/configuration.service.ts:28

Return true if the service can detect modification

If false, then ConfigurationService will set an interval and check every checkInterval @{ConfigurationServiceParameters.checkInterval}

Parameters​

id​

string

of the source to check

callback​

() => void

to call if source has changed

defaultValue?​

any

if the source is not found

Returns​

boolean


getConfiguration()​

getConfiguration(id): Promise<{[key: string]: any; }>

Defined in: packages/core/src/configurations/configuration.service.ts:17

Parameters​

id​

string

of the configuration to retrieve

Returns​

Promise<{[key: string]: any; }>