Méthode | Description | |
---|---|---|
AddSubResolver ( ISubDependencyResolver subResolver ) : void |
Registers a sub resolver instance
|
|
CanResolve ( |
Returns true if the resolver is able to satisfy the specified dependency.
|
|
Initialize ( IKernel kernel, DependencyDelegate dependencyDelegate ) : void |
Initializes this instance with the specified dependency delegate.
|
|
RemoveSubResolver ( ISubDependencyResolver subResolver ) : void |
Unregisters a sub resolver instance previously registered
|
|
Resolve ( |
Try to resolve the dependency by checking the parameters in the model or checking the Kernel for the requested service. The dependency resolver has the following precedence order: |
Méthode | Description | |
---|---|---|
CanResolveParameterDependency ( |
||
CanResolveServiceDependency ( |
||
ExtractComponentKey ( String keyValue, String name ) : String |
Extracts the component name from the a ref strings which is ${something}
|
|
ObtainParameterModelMatchingDependency ( |
||
RebuildContextForParameter ( |
This method rebuild the context for the parameter type. Naive implementation.
|
|
ResolveParameterDependency ( |
||
ResolveServiceDependency ( |
Méthode | Description | |
---|---|---|
GetParameterModelByType ( |
||
HasComponentInValidState ( |
||
HasComponentInValidState ( string key ) : bool | ||
IsHandlerInValidState ( IHandler handler ) : bool | ||
ObtainParameterModelByKey ( |
||
ObtainParameterModelByType ( |
||
RaiseDependencyResolving ( |
||
TryGetHandlerFromKernel ( |
public AddSubResolver ( ISubDependencyResolver subResolver ) : void | ||
subResolver | ISubDependencyResolver | The subresolver instance |
Résultat | void |
public CanResolve ( |
||
context | Creation context, which is a resolver itself | |
contextHandlerResolver | ISubDependencyResolver | Parent resolver |
model | Model of the component that is requesting the dependency | |
dependency | The dependency model | |
Résultat | bool |
protected CanResolveParameterDependency ( |
||
model | ||
dependency | ||
Résultat | bool |
protected CanResolveServiceDependency ( |
||
context | ||
model | ||
dependency | ||
Résultat | bool |
protected ExtractComponentKey ( String keyValue, String name ) : String | ||
keyValue | String | |
name | String | |
Résultat | String |
public Initialize ( IKernel kernel, DependencyDelegate dependencyDelegate ) : void | ||
kernel | IKernel | kernel |
dependencyDelegate | DependencyDelegate | The dependency delegate. |
Résultat | void |
protected ObtainParameterModelMatchingDependency ( |
||
dependency | ||
model | ||
Résultat |
protected RebuildContextForParameter ( |
||
current | ||
parameterType | ||
Résultat |
public RemoveSubResolver ( ISubDependencyResolver subResolver ) : void | ||
subResolver | ISubDependencyResolver | The subresolver instance |
Résultat | void |
public Resolve ( |
||
context | Creation context, which is a resolver itself | |
contextHandlerResolver | ISubDependencyResolver | Parent resolver |
model | Model of the component that is requesting the dependency | |
dependency | The dependency model | |
Résultat | object |
protected ResolveParameterDependency ( |
||
context | ||
model | ||
dependency | ||
Résultat | object |
protected ResolveServiceDependency ( |
||
context | ||
model | ||
dependency | ||
Résultat | object |