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
Name | Type |
---|---|
S | extends State |
T | extends Service <S , T > |
Parameters
Name | Type | Default value |
---|---|---|
ctor | Class <T > | undefined |
force | boolean | true |
Returns
void
Defined in
onekijs/packages/onekijs-framework/src/app/Container.ts:25
createService
▸ createService<S
, T
>(ctor
, context
, initialState
): T
Type parameters
Name | Type |
---|---|
S | extends State |
T | extends AppService <S , T > |
Parameters
Name | Type |
---|---|
ctor | Class <T > |
context | BasicAppContext |
initialState | S |
Returns
T
Implementation of
Defined in
onekijs/packages/onekijs-framework/src/app/Container.ts:36
getServiceClass
▸ getServiceClass<S
, T
>(ctor
): Class
<T
>
Type parameters
Name | Type |
---|---|
S | extends State |
T | extends Service <S , T > |
Parameters
Name | Type |
---|---|
ctor | Class <T > |
Returns
Class
<T
>
Defined in
onekijs/packages/onekijs-framework/src/app/Container.ts:32