Manages registration and loading of startup classes. This is a singleton that handles the

Register For Startup

decorator pattern.

Constructors

Properties

_lastResult: LoadAllResult = null
_loadCompleted: boolean = false
_loadPromise: Promise<LoadAllResult> = null
_registrations: StartupRegistration[] = []
_instance: StartupManager

Accessors

Methods

  • Handles all startup activities including initializing the local cache manager and then loading all registered startup classes in priority order.

    Classes with the same priority are loaded in parallel.

    This method is idempotent - multiple callers will receive the same promise and startup classes are only loaded once unless forceRefresh is true. This prevents race conditions when multiple components await startup completion.

    Parameters

    • forceRefresh: boolean = false

      If true, reload all startup classes even if already loaded

    • Optional contextUser: UserInfo

      The authenticated user context

    • Optional provider: IMetadataProvider

      Optional metadata provider

    Returns Promise<LoadAllResult>

    Results of all load operations