import { Injector } from "https://deno.land/x/danet@2.4.0/src/injector/injector.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
getKeyAndTypeOrInstance(Type: InjectableConstructor | UseValueInjector | UseClassInjector, token?: string | undefined)private
getParametersTypes(Type: Constructor): Constructor[]private
getParamToken(Type: Constructor, paramIndex: number)private
resolveControllerParameters<T>(Type: Constructor<T>)private
resolveDependencies(Dependencies: Constructor[], ParentConstructor: Constructor)private
resolveInjectable(ParentConstructor?: Constructor,
token?: string,
private
setNonSingleton(Type: Constructor,
key: string | InjectableConstructor,
dependencies: Array<Constructor>,
transient?: boolean,
addAvailableInjectable(injectables: (InjectableConstructor | UseClassInjector | UseValueInjector)[])
bootstrapModule(module: ModuleMetadata)
cleanRequestInjectables(_id: string)
get<T>(Type: Constructor<T> | string, ctx?: ExecutionContext): T
getAll()
has<T>(Type: Constructor<T> | string): boolean
registerInjectables(Injectables: Array<InjectableConstructor | UseClassInjector | UseValueInjector>)
resolveControllers(Controllers: ControllerConstructor[])