BoundedContext
Type parameters
▪ T: SuperConstructor
▪ T: SuperConstructor
Hierarchy
↳ Module
Module
↳ BoundedContext
Implements
Index
Constructors
Properties
Methods
- getSelectableStates
- getState
- hasState
- initialize
- invokeAction
- isInDevelopment
- isInOneOfStates
- isInProduction
- isInState
- reset
- setState
- shutdown
- start
- stop
- validateState
Constructors
constructor
+ new BoundedContext(props?
: ModuleProps): BoundedContext
Inherited from Module.constructor
Overrides void
Parameters:
Name | Type |
---|---|
props? | ModuleProps |
Returns: BoundedContext
Properties
Optional
app
• app? : BaseApp
Overrides void
config
• config: Configurable
Implementation of Module.config
Overrides void
injector
• injector: Injector
Inherited from Module.injector
Overrides void
Optional
log
• log? : Logger
Overrides void
modules
• modules: Module[]
Overrides void
state
• state: State
Implementation of Module.state
Inherited from StatefulMixin.state
Overrides void
Static
STATES
▪ STATES: typeof STATES
Overrides void
Methods
getSelectableStates
▸ getSelectableStates(): Record‹string, State›
Implementation of Module
Inherited from StatefulMixin.getSelectableStates
Overrides Task.getSelectableStates
Returns: Record‹string, State›
getState
▸ getState(): State
Implementation of Module
Inherited from StatefulMixin.getState
Returns: State
hasState
▸ hasState(): boolean
Implementation of Module
Inherited from StatefulMixin.hasState
Returns: boolean
initialize
▸ initialize(app
: BaseApp, injector
: Injector): Promise‹void›
Implementation of Module
Inherited from Module.initialize
Overrides void
Parameters:
Name | Type |
---|---|
app | BaseApp |
injector | Injector |
Returns: Promise‹void›
invokeAction
▸ invokeAction(actionName
: string, options?
: ActionInvokingOptions): Promise‹void›
Implementation of Module
Inherited from Module.invokeAction
Overrides void
Parameters:
Name | Type |
---|---|
actionName | string |
options? | ActionInvokingOptions |
Returns: Promise‹void›
isInDevelopment
▸ isInDevelopment(): boolean
Inherited from Module.isInDevelopment
Overrides void
Returns: boolean
isInOneOfStates
▸ isInOneOfStates(states
: State | State[]): boolean
Implementation of Module
Inherited from StatefulMixin.isInOneOfStates
Overrides Task.isInOneOfStates
Parameters:
Name | Type |
---|---|
states | State | State[] |
Returns: boolean
isInProduction
▸ isInProduction(): boolean
Inherited from Module.isInProduction
Overrides void
Returns: boolean
isInState
▸ isInState(state
: State | State[]): boolean
Implementation of Module
Inherited from StatefulMixin.isInState
Parameters:
Name | Type |
---|---|
state | State | State[] |
Returns: boolean
reset
▸ reset(): Promise‹void›
Implementation of Module
Overrides void
Returns: Promise‹void›
setState
▸ setState(state
: State): void
Implementation of Module
Inherited from StatefulMixin.setState
Parameters:
Name | Type |
---|---|
state | State |
Returns: void
shutdown
▸ shutdown(): Promise‹void›
Implementation of Module
Inherited from Module.shutdown
Overrides void
Returns: Promise‹void›
start
▸ start(): Promise‹void›
Implementation of Module
Overrides void
Returns: Promise‹void›
stop
▸ stop(): Promise‹void›
Implementation of Module
Overrides void
Returns: Promise‹void›
validateState
▸ validateState(stateOrStates
: State | State[], error?
: Error): boolean
Implementation of Module
Inherited from StatefulMixin.validateState
Overrides Task.validateState
Parameters:
Name | Type |
---|---|
stateOrStates | State | State[] |
error? | Error |
Returns: boolean