Skip to main content

installConfigurationFactories

@webda/core


Function: installConfigurationFactories()

installConfigurationFactories(target, configurationClass?, schema?): void

Defined in: packages/core/src/application/application.ts:64

Install filterParameters and createConfiguration on a modda or bean class

Both are bound to target: a subclass that is not registered itself would otherwise inherit them and have its own parameters filtered out by the parent schema. Such a subclass gets the parent configuration class without filtering.

Parameters​

target​

any

the modda or bean class

configurationClass?​

() => ServiceParameters

the parameters class to instantiate

schema?​

JSONSchema7

the parameters JSON schema, used to filter the parameters

Returns​

void