A copy of IComponentsManagerBuilderOptions, with all fields optional.

interface IHttpServiceSparqlEndpointArgs {
    configLoader?: (registry: ConfigRegistry) => Promise<void>;
    configPath?: string;
    constructionStrategy?: IConstructionStrategy<any>;
    context?: any;
    contextOverride?: boolean;
    defaultConfigPath: string;
    dumpErrorState?: boolean;
    freshWorkerPerQuery?: boolean;
    instanceUri?: string;
    logLevel?: LogLevel;
    mainModulePath?: string;
    moduleLoader?: (registry: ComponentRegistry) => Promise<void>;
    moduleRootPath: string;
    moduleState?: IModuleState;
    port?: number;
    runnerInstanceUri?: string;
    timeout?: number;
    workers?: number;
}

Hierarchy (View Summary)

Properties

configLoader?: (registry: ConfigRegistry) => Promise<void>

Callback for registering configurations. Defaults to no config registrations.

Type declaration

    • (registry: ConfigRegistry): Promise<void>
    • Parameters

      • registry: ConfigRegistry

        A registry that accepts configuration registrations.

      Returns Promise<void>

configPath?: string

The path or URL to a Components.js config file.

constructionStrategy?: IConstructionStrategy<any>

A strategy for constructing instances. Defaults to ConstructionStrategyCommonJs.

context?: any
contextOverride?: boolean
defaultConfigPath: string
dumpErrorState?: boolean

If the error state should be dumped into componentsjs-error-state.json after failed instantiations. Defaults to false.

freshWorkerPerQuery?: boolean
instanceUri?: string

A URI identifying the component to instantiate.

logLevel?: LogLevel

The logging level. Defaults to 'warn'.

mainModulePath?: string

Absolute path to the package root from which module resolution should start.

moduleLoader?: (registry: ComponentRegistry) => Promise<void>

Callback for registering components and modules. Defaults to an invocation of ComponentRegistry.registerAvailableModules.

Type declaration

    • (registry: ComponentRegistry): Promise<void>
    • Parameters

      • registry: ComponentRegistry

        A registry that accept component and module registrations.

      Returns Promise<void>

moduleRootPath: string
moduleState?: IModuleState

The module state. Defaults to a newly created instances on the mainModulePath.

port?: number
runnerInstanceUri?: string

A URI identifying the runner component.

timeout?: number
workers?: number