Interface INopePackageLoader

Hierarchy

  • INopePackageLoader

Properties

activationHandlers: INopeActivationHanlder[]

This is a helper used during the Building process of utilizing inversify. This might be deprecated.

Deprecated

container: Container

Internally the loader is build using inversify. InversifyJS is a powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.

For more details about InversifyJS please checkout: https://inversify.io/

This Element contains a default inversify container

dispatcher: INopeDispatcher

Accessor for a Dispatcher; This dispatcher is created using a default package, containing definition for the dispatcher etc. please see nope.loader.generateNopeBasicPackage to checkout the default function.

Memberof

INopePackageLoader

Methods

  • Function to Add a different inversify container to the system. This will lead to a merge. This might be deprecated.

    Deprecated

    Memberof

    INopePackageLoader

    Parameters

    • container: Container

    Returns any

  • Helper to add the decorated Elements.

    Parameters

    • Optional 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>

  • Add a Description of a Package to the Loader. This results in hosting the contained services and providing constructors for the shared classes.

    Additionally all defined instances of a pac

    Returns

    Memberof

    INopePackageLoader

    Parameters

    Returns Promise<void>

  • Generate the Instances that has been added via the packages.

    Returns

    Memberof

    INopePackageLoader

    Parameters

    • Optional testRequirements: boolean

      Flag to turn on / off the Tests. Defaultly the test is activated. Circular dependencies are not handled.

    Returns Promise<void>

Generated using TypeDoc