1 | import { IocContract } from '../Contracts';
|
2 |
|
3 |
|
4 |
|
5 | export declare class Injector {
|
6 | private container;
|
7 | constructor(container: IocContract);
|
8 | /**
|
9 | * Resolves the injections to be injected to a method or the
|
10 | * class constructor
|
11 | */
|
12 | private resolve;
|
13 | /**
|
14 | * Resolves the injections to be injected to a method or the
|
15 | * class constructor
|
16 | */
|
17 | private resolveAsync;
|
18 | /**
|
19 | * Find if the value can be instantiated
|
20 | */
|
21 | private isNewable;
|
22 | /**
|
23 | * Get injections for a given property from the target
|
24 | */
|
25 | private getInjections;
|
26 | /**
|
27 | * Inject dependencies to the constructor of the class
|
28 | */
|
29 | make(target: any, runtimeValues: any[]): any;
|
30 | /**
|
31 | * Inject dependencies asynchronously to the constructor of the class
|
32 | */
|
33 | makeAsync(target: any, runtimeValues: any[]): Promise<any>;
|
34 | /**
|
35 | * Injects dependencies to the class method
|
36 | */
|
37 | call(target: any, method: string, runtimeValues: any[]): any;
|
38 | /**
|
39 | * Injects dependencies asynchronously to the class method
|
40 | */
|
41 | callAsync(target: any, method: string, runtimeValues: any[]): Promise<any>;
|
42 | }
|