Skip to main content
Version: Next

ApiFactoryRegistry

Home > @backstage/core-app-api > ApiFactoryRegistry

ApiFactoryRegistry is an ApiFactoryHolder implementation that enables registration of API Factories with different scope.

Each scope has an assigned priority, where factories registered with higher priority scopes override ones with lower priority.

Signature:

class ApiFactoryRegistry implements ApiFactoryHolder 

Implements: ApiFactoryHolder

Methods

Method

Modifiers

Description

get(api)

getAllApis()

register(scope, factory)

Register a new API factory. Returns true if the factory was added to the registry.

A factory will not be added to the registry if there is already an existing factory with the same or higher priority.