The main application class.

Manages plugins, lifecycle, and provides access to the container.

const app = await ApplicationBuilder.create()
.usePlugin(new DatabasePlugin())
.build();

await app.start();
// Application running
await app.stop();

Constructors

Methods

  • Starts the application.

    Starts all plugins in dependency order.

    Returns Promise<void>

    If a plugin fails to start

  • Resolves a service from the container.

    Type Parameters

    • T

      The service type

    Parameters

    • token: string | symbol

      The service token

    Returns T

    The resolved service

  • Gets a plugin by name.

    Parameters

    • name: string

      The plugin name

    Returns undefined | Plugin

    The plugin if found, undefined otherwise

  • Performs health checks on all plugins and contexts.

    Returns Promise<HealthCheckResult>

    Aggregated health check result