BaseApp

Type parameters

T: SuperConstructor

T: SuperConstructor

Hierarchy

Module

  • Module

    BaseApp

    App

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

+ new BaseApp(props?: AppProps): BaseApp

Overrides Module.constructor

Creates an instance of BaseApp. Creates an instance of BaseApp.

Parameters:

NameTypeDescription
props?AppPropsProperties for BaseApp.

Returns: BaseApp

Properties

Optional app

app? : BaseApp

Inherited from Module.app

Overrides void


config

config: Configurable

Implementation of BaseApp.config

Overrides Module.config


injector

injector: Injector

Implementation of BaseApp.injector

Overrides Module.injector


Optional log

log? : Logger

Overrides Module.log


modules

modules: Module[]

Overrides Module.modules


state

state: State

Implementation of BaseApp.state

Inherited from StatefulMixin.state

Overrides void


Static STATES

STATES: typeof STATES

Inherited from Module.STATES

Overrides void

Methods

afterShutdown

afterShutdown(): Promise‹void›

On shutdown hook.

async

Returns: Promise‹void›


configure

configure(props: ConfigProps): void

Make it possible to override configuration (at any nested level).

Parameters:

NameTypeDescription
propsConfigPropsProperties with relation path: value matching property types.

Returns: void


debug

debug(): void

Enables debug mode logging on application app. Must be enabled prior to initialization.

Returns: void


getSelectableStates

getSelectableStates(): Record‹string, State

Implementation of BaseApp

Inherited from StatefulMixin.getSelectableStates

Overrides Task.getSelectableStates

Returns: Record‹string, State


getState

getState(): State

Implementation of BaseApp

Inherited from StatefulMixin.getState

Overrides Task.getState

Returns: State


hasState

hasState(): boolean

Implementation of BaseApp

Inherited from StatefulMixin.hasState

Overrides Task.hasState

Returns: boolean


initialize

initialize(): Promise‹void›

Implementation of BaseApp

Overrides Module.initialize

Initializes application.

async

Returns: Promise‹void›


invokeAction

invokeAction(actionName: string, options?: ActionInvokingOptions): Promise‹void›

Implementation of BaseApp

Inherited from Module.invokeAction

Overrides void

Parameters:

NameType
actionNamestring
options?ActionInvokingOptions

Returns: Promise‹void›


isInDevelopment

isInDevelopment(): boolean

Inherited from Module.isInDevelopment

Overrides void

Returns: boolean


isInOneOfStates

isInOneOfStates(states: State | State[]): boolean

Implementation of BaseApp

Inherited from StatefulMixin.isInOneOfStates

Overrides Task.isInOneOfStates

Parameters:

NameType
statesState | State[]

Returns: boolean


isInProduction

isInProduction(): boolean

Inherited from Module.isInProduction

Overrides void

Returns: boolean


isInState

isInState(state: State | State[]): boolean

Implementation of BaseApp

Inherited from StatefulMixin.isInState

Overrides Task.isInState

Parameters:

NameType
stateState | State[]

Returns: boolean


reset

reset(): Promise‹void›

Implementation of BaseApp

Inherited from Module.reset

Overrides void

Returns: Promise‹void›


setState

setState(state: State): void

Implementation of BaseApp

Inherited from StatefulMixin.setState

Overrides Task.setState

Parameters:

NameType
stateState

Returns: void


shutdown

shutdown(): Promise‹void›

Implementation of BaseApp

Overrides Module.shutdown

Shutdowns app.

async

Returns: Promise‹void›


start

start(): Promise‹void›

Implementation of BaseApp

Inherited from Module.start

Overrides void

Returns: Promise‹void›


stop

stop(): Promise‹void›

Implementation of BaseApp

Inherited from Module.stop

Overrides void

Returns: Promise‹void›


validateState

validateState(stateOrStates: State | State[], error?: Error): boolean

Implementation of BaseApp

Inherited from StatefulMixin.validateState

Overrides Task.validateState

Parameters:

NameType
stateOrStatesState | State[]
error?Error

Returns: boolean