A copy of IComponentsManagerBuilderOptions, with all fields optional.

interface IDynamicQueryEngineOptions {
    configLoader?: ((registry) => Promise<void>);
    configPath?: string;
    constructionStrategy?: IConstructionStrategy<any>;
    dumpErrorState?: boolean;
    instanceUri?: string;
    logLevel?: LogLevel;
    mainModulePath?: string;
    moduleLoader?: ((registry) => Promise<void>);
    moduleState?: IModuleState;
    runnerInstanceUri?: string;
}

Hierarchy (view full)

Properties

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

Callback for registering configurations. Defaults to no config registrations.

Type declaration

    • (registry): 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.

dumpErrorState?: boolean

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

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) => Promise<void>)

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

Type declaration

    • (registry): Promise<void>
    • Parameters

      • registry: ComponentRegistry

        A registry that accept component and module registrations.

      Returns Promise<void>

moduleState?: IModuleState

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

runnerInstanceUri?: string

A URI identifying the runner component.