Skip to main content

Application

runtime / Application

Class: Application<Context, Router, ModelManager>

Type parameters

NameType
Contextextends IContext
Routerextends IRouter = IRouter
ModelManagerextends IModelManager = IModelManager

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Application<Context, Router, ModelManager>(options)

Type parameters

NameType
Contextextends IContext
Routerextends IRouter<any, Router> = IRouter<any>
ModelManagerextends IModelManager = IModelManager

Parameters

NameType
optionsIApplicationOptions<Context, Router, ModelManager>

Properties

AppComponent

AppComponent: any

Implementation of

IApplication.AppComponent


_UserAppComponent

Private Optional _UserAppComponent: any


_context

Private _context: any


_createApplicationContext

Private _createApplicationContext: any


_getAppComponent

Private _getAppComponent: any


_init

Private _init: any


_modelManager

Private _modelManager: any


_render

Private _render: any


_renderFn

Private _renderFn: any


pluginManager

pluginManager: HookManager<{ dispose: AsyncParallelHook<void, void, void> ; getAppComponent: AsyncSeriesWaterfallHook<unknown, IContext> ; getAppContext: AsyncSeriesWaterfallHook<IContext, void> ; getRootAppComponent: AsyncSeriesWaterfallHook<unknown, IContext> ; init: AsyncParallelHook<void, void, void> }, void, CustomRuntimePluginHooks>

Implementation of

IApplication.pluginManager


router

router: Router

Implementation of

IApplication.router

Methods

dispose

dispose(): Promise<void>

Returns

Promise<void>

Implementation of

IApplication.dispose


getContext

getContext(): Context

Returns

Context


rerender

rerender(__namedParameters?): Promise<void>

Parameters

NameType
__namedParameters?IRerenderConfig

Returns

Promise<void>

Implementation of

IApplication.rerender


run

run(): Promise<Context>

Returns

Promise<Context>

Implementation of

IApplication.run