You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
548 B
10 lines
548 B
import {Instantiable, PropertyDependency} from '../types'
|
|
import {Collection, logIfDebugging} from '../../util'
|
|
import {propertyInjectionMetadata} from './propertyInjectionMetadata'
|
|
|
|
export function getPropertyInjectionMetadata(token: Instantiable<any>): Collection<PropertyDependency> {
|
|
const loadedMeta = ((token as any)[propertyInjectionMetadata] || new Collection()) as Collection<PropertyDependency>
|
|
logIfDebugging('extollo.di.injection', 'getPropertyInjectionMetadata() target:', token, 'loaded:', loadedMeta)
|
|
return loadedMeta
|
|
}
|