Skip to main content

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

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

Methods

MethodDescription
createRootContext(deps)?(Optional)
factory(deps, context)