Injector
Static Method Summary
| Static Public Methods | ||
| public static |
resolve(bindings: Binding): ResolvedBinding Start the binding resolution |
|
| public static |
resolveAndCreate(bindings: Binding): Injector This is an injector Factory |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(resolvedBindings: ResolvedBinding, parent: Injector) This is an Injector |
|
Member Summary
| Public Members | ||
| public |
parent: * |
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
Return the factory execution value if the key matches |
|
| public |
parseDependencies(dependencies: Object): Object Split dependencies in an array of object |
|
| public |
resolveConstructor(resolvedBinding: ResolvedBinding, dependencies: Object): Object Resolve the constructor injector |
|
| public |
resolveDependencies(resolvedBinding: ResolvedBinding): Object Resolve the dependencies of the resolvedBinding |
|
| public |
resolveProperty(newInstance: Object): Object Resolve properties injection |
|
| public |
resolveSetters(newInstance: Object): Object Resolve setters injection |
|
Static Public Methods
public static resolve(bindings: Binding): ResolvedBinding source
Start the binding resolution
Params:
| Name | Type | Attribute | Description |
| bindings | Binding | An array of bindings to resolve |
Public Constructors
public constructor(resolvedBindings: ResolvedBinding, parent: Injector) source
This is an Injector
Params:
| Name | Type | Attribute | Description |
| resolvedBindings | ResolvedBinding | The resolved binding of the injector |
|
| parent | Injector | The parent injector |
Public Methods
public get(token: String): Object source
Return the factory execution value if the key matches
Params:
| Name | Type | Attribute | Description |
| token | String | The key of the resolvedBinding factory to get |
public parseDependencies(dependencies: Object): Object source
Split dependencies in an array of object
Params:
| Name | Type | Attribute | Description |
| dependencies | Object | An array of dependencies |
Return:
| Object | An array of dependencies splitted into 3 category inConstructor, inProperty, inSetter |
public resolveConstructor(resolvedBinding: ResolvedBinding, dependencies: Object): Object source
Resolve the constructor injector
Params:
| Name | Type | Attribute | Description |
| resolvedBinding | ResolvedBinding | The resolved binding to loaded |
|
| dependencies | Object | The dependencies to inject |
public resolveDependencies(resolvedBinding: ResolvedBinding): Object source
Resolve the dependencies of the resolvedBinding
Params:
| Name | Type | Attribute | Description |
| resolvedBinding | ResolvedBinding | The resolved binding concerned |