Skip to main content
Version: Next

RootServiceFactoryOptions

Home > @backstage/backend-plugin-api > RootServiceFactoryOptions

Signature:

export interface RootServiceFactoryOptions<TService, TInstances extends 'singleton' | 'multiton', TImpl extends TService, TDeps extends {
[name in string]: ServiceRef<unknown>;
}>

Properties

Property

Modifiers

Type

Description

deps

TDeps

initialization?

'always' | 'lazy'

(Optional) The initialization strategy for the service factory. This service is root scoped and will use always by default.

service

ServiceRef<TService, 'root', TInstances>

Methods

Method

Description

factory(deps)