Skip to main content

createServiceFactory()

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

Creates a plugin scoped service factory without options.

Signature:

function createServiceFactory<TService, TImpl extends TService, TDeps extends {
[name in string]: ServiceRef<unknown>;
}, TContext = undefined, TOpts extends object | undefined = undefined>(config: PluginServiceFactoryConfig<TService, TContext, TImpl, TDeps>): () => ServiceFactory<TService, 'plugin'>;

Parameters

ParameterTypeDescription
configPluginServiceFactoryConfig<TService, TContext, TImpl, TDeps>The service factory configuration.

Returns:

() => ServiceFactory<TService, 'plugin'>