new Namespace(parent
, lifecycle
)
Name | Type |
---|---|
parent |
null | Namespace |
lifecycle |
Lifecycle |
Private
Readonly
_lifeCycle: any
Private
Readonly
_objects: any
Private
Readonly
_objectsByType: any
Private
Readonly
_parent: any
get
isRoot(): boolean
boolean
get
parent(): null
| Namespace
null
| Namespace
[scopeDisposeSymbol](): void
void
ScopeDisposable.[scopeDisposeSymbol]
addObject(name
, object
): void
Name | Type |
---|---|
name |
string |
object |
any |
void
addObjectByType<T
>(type
, object
): void
Name | Type |
---|---|
T |
extends Constructor <any > |
Name | Type |
---|---|
type |
T |
object |
InstanceType <T > |
void
findObject<T
>(name
): null
| T
Name |
---|
T |
Name | Type |
---|---|
name |
string |
null
| T
findObjectByType<T
>(type
): null
| T
Name |
---|
T |
Name | Type |
---|---|
type |
Constructor <T > |
null
| T
removeObject(name
): void
Name | Type |
---|---|
name |
string |
void
removeObjectByType<T
>(type
): void
Name | Type |
---|---|
T |
extends Constructor <any > |
Name | Type |
---|---|
type |
T |
void