Skip to main content

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

PropertyModifiersTypeDescription
depsTDeps
initialization?'always' | 'lazy'(Optional) The initialization strategy for the service factory. This service is root scoped and will use always by default.
serviceServiceRef<TService, 'root', TInstances>

Methods

MethodDescription
factory(deps)