@grandlinex/kernel
    Preparing search index...

    Class CoreBundleModule<K, T, P, C, E>Abstract

    An abstract base class for modules that need to perform bundle‑level initialization within the kernel. It extends CoreKernelModule and supplies a standard constructor that assigns the module name and kernel reference while also setting the module’s trigger handler to the initBundleModule method.

    Type Parameters

    Hierarchy (View Summary)

    Index
    channel: string
    logger: CoreLogger | null
    trigger?: () => Promise<void>

    Optional trigger function to be executed during registration.

    • Hook called before services are started.

      Returns Promise<void>

    • Parameters

      • ...ags: unknown[]

      Returns void

    • Parameters

      • ...ags: unknown[]

      Returns void

    • Finalization logic for the module.

      Returns Promise<void>

    • Returns a bridge module by name.

      Type Parameters

      Parameters

      • name: string

        Name of the module

      Returns M

      The bridge module

    • Returns the cache instance.

      Returns C

      Error if cache is not set

    • Returns the client instance.

      Returns P

      Error if client is not set

    • Returns the database instance.

      Returns T

      Error if database is not set

    • Returns the list of dependency names.

      Returns string[]

    • Returns the kernel instance.

      Returns K

    • Returns the name of the module.

      Returns string

    • Returns the presenter instance.

      Returns E

      Error if presenter is not set

    • Returns true if a cache is set.

      Returns boolean

    • Returns true if a client is set.

      Returns boolean

    • Returns true if a database is set.

      Returns boolean

    • Returns true if a presenter is set.

      Returns boolean

    • Parameters

      • ...ags: unknown[]

      Returns void

    • Returns Promise<void>

    • Abstract method to initialize the module.

      Returns Promise<void>

    • Parameters

      • message: string

      Returns Error

    • Parameters

      • ...ags: unknown[]

      Returns void

    • Notifies all target bridges of a state change.

      Parameters

      Returns void

    • Registers the module, actions, and services.

      Parameters

      • Optionalaction: string

        Optional kernel event to trigger

      Returns Promise<void>

    • Sets the cache instance.

      Parameters

      • cache: C

        The cache to set

      Returns void

    • Sets the client instance.

      Parameters

      • client: P

        The client to set

      Returns void

    • Sets the database instance.

      Parameters

      • db: T

        The database to set

      Returns void

    • Sets the presenter instance.

      Parameters

      • presenter: E | null

        The presenter to set

      Returns void

    • Shuts down the module and its services.

      Returns Promise<void>

    • Starts the presenter and the module.

      Returns Promise<void>

    • Startup logic for the module.

      Returns Promise<void>

    • Parameters

      • ...ags: unknown[]

      Returns void

    • Waits for all source bridges to reach a specific state.

      Parameters

      Returns Promise<void>

    • Parameters

      • ...ags: unknown[]

      Returns void