Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAutowireCapableObjectFactory.FindMatchingObjects Method

Find object instances that match the required Type.

[Visual Basic]
Protected MustOverride Sub FindMatchingObjects( _
   ByVal requiredType As Type _
)
[C#]
protected abstract IDictionary FindMatchingObjects(
   Type requiredType
);

Parameters

requiredType
The Type of the objects to look up.

Return Value

An IDictionary of object names and object instances that match the required Type, or a null reference (Nothing in Visual Basic) if none are found.

Remarks

Called by autowiring. If a subclass cannot obtain information about object names by Type, a corresponding exception should be thrown.

Exceptions

Exception Type Condition
ObjectsException In case of errors.

See Also

AbstractAutowireCapableObjectFactory Class | Spring.Objects.Factory.Support Namespace