Class NopePackageLoader

Helper Class to Build an inversify Container.

Export

Implements

Hierarchy

  • NopePackageLoader
    • NopePackageLoader

Constructors

Properties

_logger: ILogger = ...
availableElements: IClassDescriptor<INopeModule>[]
container: Container

The Inversify-Container see https://github.com/inversify/InversifyJS

Memberof

NopePackageLoader

packages: {
    [index: string]: IPackageDescription<any>;
} = {}

Type declaration

Accessors

Methods

  • Adds the Container to the given Container.

    Memberof

    NopePackageLoader

    Parameters

    • container: Container

      the Container, that should be merged

    Returns void

  • Function to load all decorated elements with the decorators exportAsNopeService

    Parameters

    • options: {
          addClassCallback?: ((options) => Promise<boolean>);
          addServiceCallback?: ((options) => Promise<boolean>);
          consider?: ("services" | "classes")[];
      } = ...
      • Optional addClassCallback?: ((options) => Promise<boolean>)
          • (options): Promise<boolean>
          • Parameters

            Returns Promise<boolean>

      • Optional addServiceCallback?: ((options) => Promise<boolean>)
      • Optional consider?: ("services" | "classes")[]

    Returns Promise<void>

  • Method to add an Element to the Build

    Memberof

    NopePackageLoader

    Parameters

    • _elements: IClassDescriptor<INopeModule>[]

      Definition containing the Elements that should be added

    • _instance: NopePackageLoader = null

    Returns Promise<void>

  • Loader Function. This function will register all provided functions, create the desired instances. Additionally it will add all descriptors.

    Memberof

    NopePackageLoader

    Parameters

    Returns Promise<void>

  • Function to initialize all the instances.

    Memberof

    NopePackageLoader

    Parameters

    • Optional testRequirements: boolean = true

    Returns Promise<void>

  • A Method, to load a package file, located at the given path.

    Parameters

    • path: string

      Path to the javascript file

    • useAutostart: boolean = true

      Flag to enable / disable the Autostart

    • useInstance: boolean = true

      Flag to enable / disable considering the Instances.

    Returns Promise<void>

  • Helper to provide all linked services.

    Returns Promise<void>

Generated using TypeDoc