Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAutowireCapableObjectFactory.ResolveDependency Method

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

[Visual Basic]
Public MustOverride Sub ResolveDependency( _
   ByVal descriptor As DependencyDescriptor, _
   ByVal objectName As String, _
   ByVal autowiredObjectNames As IList _
) _
    Implements IAutowireCapableObjectFactory.ResolveDependency
[C#]
public abstract 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

Implements

IAutowireCapableObjectFactory.ResolveDependency

Exceptions

Exception Type Condition
ObjectsException if dependency resolution failed

See Also

AbstractAutowireCapableObjectFactory Class | Spring.Objects.Factory.Support Namespace