Skip to main content
Version: Next

PluginServiceFactoryOptions

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

Signature:

export interface PluginServiceFactoryOptions<TService, TInstances extends 'singleton' | 'multiton', TContext, 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 plugin scoped and will use lazy by default.

service

ServiceRef<TService, 'plugin', TInstances>

Methods

Method

Description

createRootContext(deps)?

(Optional)

factory(deps, context)