Skip to main content

Class: Container

Implements

Constructors

constructor

new Container()

Defined in

onekijs/packages/onekijs-framework/src/app/Container.ts:20

Properties

classRegistry

Private classRegistry: Object

Index signature

[k: string]: any

Defined in

onekijs/packages/onekijs-framework/src/app/Container.ts:12


instanceRegistry

Private instanceRegistry: Object

Index signature

[k: string]: any

Defined in

onekijs/packages/onekijs-framework/src/app/Container.ts:16

Methods

addServiceClass

addServiceClass<S, T>(ctor, force?): void

Type parameters

NameType
Sextends State
Textends Service<S, T>

Parameters

NameTypeDefault value
ctorClass<T>undefined
forcebooleantrue

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/app/Container.ts:25


createService

createService<S, T>(ctor, context, initialState): T

Type parameters

NameType
Sextends State
Textends AppService<S, T>

Parameters

NameType
ctorClass<T>
contextBasicAppContext
initialStateS

Returns

T

Implementation of

ServiceFactory.createService

Defined in

onekijs/packages/onekijs-framework/src/app/Container.ts:36


getServiceClass

getServiceClass<S, T>(ctor): Class<T>

Type parameters

NameType
Sextends State
Textends Service<S, T>

Parameters

NameType
ctorClass<T>

Returns

Class<T>

Defined in

onekijs/packages/onekijs-framework/src/app/Container.ts:32