Home

Castle Stronghold

ISubDependencyResolver API Document

Implementors should use a strategy to obtain valid references to properties and/or services requested in the dependency model.

Methods

CanResolve(CreationContext context, ISubDependencyResolver parentResolver, ComponentModel model, DependencyModel dependency) : Boolean

Returns true if the resolver is able to satisfy this dependency.

ParameterDescription
context Creation context, which is a resolver itself
parentResolver Parent resolver
model Model of the component that is requesting the dependency
dependency The dependency model

Resolve(CreationContext context, ISubDependencyResolver parentResolver, ComponentModel model, DependencyModel dependency) : Object

Should return an instance of a service or property values as specified by the dependency model instance. It is also the responsability of Castle.MicroKernel.IDependencyResolver to throw an exception in the case a non-optional dependency could not be resolved.

ParameterDescription
context Creation context, which is a resolver itself
parentResolver Parent resolver
model Model of the component that is requesting the dependency
dependency The dependency model

Google
Search WWW Search castleproject.org