import { Injector } from "https://deno.land/x/danet@1.7.4/src/injector/mod.ts";
Properties
private
availableTypes: Map<Constructor | string, Constructor>private
contextInjectables: Map<string, Map<Constructor | string, unknown>>private
logger: Loggerprivate
resolved: Map<Constructor | string, (ctx?: ExecutionContext) => Promise<unknown> | unknown>private
resolvedTypes: Map<Constructor | string, Constructor>Methods
private
getDependencies(Type: Constructor): Constructor[]private
getParamToken(Type: Constructor, paramIndex: number)private
resolveControllerDependencies<T>(Type: Constructor<T>)private
resolveDependencies(Dependencies: Constructor[], ParentConstructor: Constructor)private
resolveInjectable()private
setNonSingleton(Type: Constructor,
key: string | InjectableConstructor,
dependencies: Array<Constructor>,
transient?: boolean,
addAvailableInjectable(injectables: InjectableConstructor[])
bootstrap(ModuleType: ModuleConstructor)
cleanRequestInjectables(_id: string)
get<T>(Type: Constructor<T> | string, ctx?: ExecutionContext): T
getAll()
has<T>(Type: Constructor<T> | string): boolean
registerInjectables(Injectables: Array<InjectableConstructor | TokenInjector>)
resolveControllers(Controllers: ControllerConstructor[])