Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAutowireCapableObjectFactory.ResolveDependency Method

Resolve the specified dependency against the objects defined in this factory.

[Visual Basic]
Public Sub ResolveDependency( _
   ByVal descriptor As DependencyDescriptor, _
   ByVal objectName As String, _
   ByVal autowiredObjectNames As IList _
)
[C#]
object ResolveDependency(
   DependencyDescriptor descriptor,
   string objectName,
   IList autowiredObjectNames
);

Parameters

descriptor
The descriptor for the dependency.
objectName
Name of the object which declares the present dependency.
autowiredObjectNames
A list that all names of autowired object (used for resolving the present dependency) are supposed to be added to.

Return Value

the resolved object, or

null
if none found

Exceptions

Exception Type Condition
ObjectsException if dependency resolution failed

See Also

IAutowireCapableObjectFactory Interface | Spring.Objects.Factory.Config Namespace