Skip to main content

ServiceParameters

@webda/core


Class: ServiceParameters

Defined in: packages/core/src/services/serviceparameters.ts:6

Interface to specify the Service parameters

Extends​

Extended by​

Constructors​

Constructor​

new ServiceParameters(): ServiceParameters

Returns​

ServiceParameters

Inherited from​

Parameters.constructor

Properties​

type​

type: string

Defined in: packages/core/src/services/serviceparameters.ts:10

Type of the service

Methods​

load()​

load(params?): this

Defined in: packages/core/src/application/parameters.ts:22

Load raw parameters by assigning them onto this instance

Parameters​

params?​

any = {}

the service parameters

Returns​

this

this for chaining

Inherited from​

Parameters.load


update()​

update(params?, delta): this

Defined in: packages/core/src/application/parameters.ts:33

Update parameters and call watchers if a parameter was changed

Parameters​

params?​

any = {}

the service parameters

delta​

any

the delta

Returns​

this

this for chaining

Inherited from​

Parameters.update


with()​

with(callback): this

Defined in: packages/core/src/application/parameters.ts:63

Watch for changes on the parameters and call watchers when a parameter is changed

Parameters​

callback​

(params) => void

the callback function

Returns​

this

this for chaining

Inherited from​

Parameters.with