Skip to main content
Version: Next

ApiResolver

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

Handles the actual on-demand instantiation and memoization of APIs out of an ApiFactoryHolder.

Signature:

class ApiResolver implements ApiHolder 

Implements: ApiHolder

Constructors

Constructor

Modifiers

Description

(constructor)(factories)

Constructs a new instance of the ApiResolver class

Methods

Method

Modifiers

Description

get(ref)

validateFactories(factories, apis)

static

Validate factories by making sure that each of the apis can be created without hitting any circular dependencies.