Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • FeatureServiceRegistry

Index

Constructors

constructor

Methods

bindFeatureServices

  • Bind all dependencies to a consumer.

    throws

    Throws an error if non-optional dependencies can't be fulfilled.

    throws

    Throws an error if called with the same consumer ID more than once.

    Parameters

    • consumerDefinition: FeatureServiceConsumerDefinition

      The definition of the consumer to which dependencies should be bound.

    • consumerId: string

      The ID of the consumer to which dependencies should be bound.

    Returns FeatureServicesBinding

registerFeatureServices

  • 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>[]

      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

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc