zibri
    Preparing search index...

    Class GlobalRegistryAbstract

    A registry for handling global state.

    Index

    Constructors

    Properties

    backupResources: Newable<BackupResourceInterface>[] = []

    All backup resources registered with @Backup.

    bodyParsers: Newable<BodyParserInterface>[] = []

    All body parsers registered with @BodyParser.

    controllerClasses: Newable<unknown>[] = []

    All controllers registered with @Controller.

    entityClasses: Newable<BaseEntity>[] = []

    All entities registered with @Entity.

    injectables: DiProvider<unknown>[] = []

    All injectables registered eg. Via @Injectable.

    lazyInjectables: DiProvider<unknown>[] = []

    All injectables registered via @Injectable but with the { register: 'onUse' } flag.

    userRepositories: UserRepositories = []

    All user repositories registered with @UserRepo.

    websocketControllerClasses: Newable<unknown>[] = []

    All websocket controllers registered with @WebsocketController.

    Methods

    • Checks if the app is created.

      Returns boolean

      True when the app has the state of AppState.CREATED, false otherwise.

    • Checks if the app is initialized.

      Returns boolean

      True when the app has the state of AppState.INITIALIZED, false otherwise.

    • Checks if the app is shutting down.

      Returns boolean

      True when the app has the state of AppState.SHUTTING_DOWN, false otherwise.

    • Checks if the app has been started.

      Returns boolean

      True when the app has the state of AppState.STARTED, false otherwise.