Class FeatureServiceRegistry

The FeatureServiceRegistry provides Feature Services to dependent consumers. The integrator should instantiate a singleton instance of the registry.

Hierarchy

  • FeatureServiceRegistry

Constructors

Methods

  • Register a set of Feature Services to make them available for binding to dependent consumers.

    Throws

    Throws an error if the dependencies of one of the provider definitions can't be fulfilled.

    Throws

    Throws an error if one of the registered Feature Services contains an invalid version according to semver notation.

    Parameters

    • providerDefinitions: FeatureServiceProviderDefinition<SharedFeatureService, FeatureServices>[]

      Feature Services that should be registered. A Feature Service and its dependencies must either be registered together, or the dependencies must have already been registered. It is not possible to provide dependencies later. Sorting the provided definitions is not necessary, since the registry takes care of registering the given definitions in the correct order.

    • registrantId: string

      The ID of the entity that registers the provider definitions.

    Returns void

Generated using TypeDoc