Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IConfigurableListableObjectFactory.IsAutowireCandidate Method

Determines whether the specified object qualifies as an autowire candidate, to be injected into other beans which declare a dependency of matching type. This method checks ancestor factories as well.

[Visual Basic]
Public Sub IsAutowireCandidate( _
   ByVal objectName As String, _
   ByVal descriptor As DependencyDescriptor _
)
[C#]
bool IsAutowireCandidate(
   string objectName,
   DependencyDescriptor descriptor
);

Parameters

objectName
Name of the object to check.
descriptor
The descriptor of the dependency to resolve.

Return Value

true if the object should be considered as an autowire candidate; otherwise, false.

Exceptions

Exception Type Condition
NoSuchObjectDefinitionException if there is no object with the given name.

See Also

IConfigurableListableObjectFactory Interface | Spring.Objects.Factory.Config Namespace