Add TreeModel and HasSubtree implementation
This commit is contained in:
@@ -51,6 +51,6 @@ export abstract class AbstractFactory<T> {
|
||||
return this.token
|
||||
}
|
||||
|
||||
return this.token.name ?? '(unknown token)'
|
||||
return this.token?.name ?? '(unknown token)'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
Instantiable,
|
||||
PropertyDependency,
|
||||
} from '../types'
|
||||
import {Collection} from '../../util'
|
||||
import {Collection, logIfDebugging} from '../../util'
|
||||
import 'reflect-metadata'
|
||||
|
||||
/**
|
||||
@@ -58,6 +58,7 @@ export class Factory<T> extends AbstractFactory<T> {
|
||||
|
||||
do {
|
||||
const loadedMeta = Reflect.getMetadata(DEPENDENCY_KEYS_PROPERTY_METADATA_KEY, currentToken)
|
||||
logIfDebugging('extollo.di.injection', 'Factory.getInjectedProperties() target:', currentToken, 'loaded:', loadedMeta)
|
||||
if ( loadedMeta ) {
|
||||
meta.concat(loadedMeta)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user