@espressif/rainmaker-base-cdf
    Preparing search index...

    Class AdaptorRegistry

    Registry for managing SDK adaptors.

    Provides singleton access to register, retrieve, and manage SDK adaptors that implement the CDF SDK interface. Uses a Proxy to intercept method calls and provide helpful error messages for unimplemented methods.

    Index

    Methods

    • Clears all registered adaptors from the registry.

      Returns void

    • Returns the identifier of the currently active SDK adaptor, or null if none is set.

      Returns string | null

      The active adaptor identifier, or null

    • Gets all registered adaptor identifiers.

      Returns string[]

      Array of adaptor identifiers

    • Sets the active SDK adaptor by identifier. The active adaptor is used as the default when no adaptorIdentifier is explicitly provided (e.g. in userStore.auth methods or syncGroupsList).

      Parameters

      • adaptorIdentifier: string

        The identifier of the adaptor to set as active

      Returns void

      ESPCDFRegistryError if the adaptor is not registered

    • Removes an adaptor from the registry.

      Parameters

      • adaptorIdentifier: string

        The identifier of the adaptor to remove

      Returns void

      Error if the adaptor is not found