@flowscripter/dynamic-cli-framework
    Preparing search index...

    Interface ServiceProviderFactory

    Extension interface implemented by a plugin to provide ServiceProvider instances.

    A plugin registers a ServiceProviderFactory against DYNAMIC_CLI_FRAMEWORK_SERVICE_PROVIDER_FACTORY_EXTENSION_POINT. On startup, DynamicPluginRuntimeCLI (see dynamic-cli-framework) instantiates each factory and adds the returned service providers to the CLI registry before the runner executes, so they participate in the full initialization lifecycle (including GlobalModifierCommand scanning and ServiceProvider.initService).

    interface ServiceProviderFactory {
        getServiceProviders(): readonly ServiceProvider[];
    }
    Index
    • Return the ServiceProvider instances provided by this factory.

      Returns readonly ServiceProvider[]