Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

StaticListableObjectFactory.GetObjectsOfType(Type) Method

Return the object instances that match the given object Type (including subclasses), judging from either object definitions or the value of ObjectType in the case of IFactoryObjects.

[Visual Basic]
Public NotOverridable Overloads Sub GetObjectsOfType( _
   ByVal type As Type _
) _
    Implements IListableObjectFactory.GetObjectsOfType
[C#]
public IDictionary GetObjectsOfType(
   Type type
);

Parameters

type
The Type (class or interface) to match.

Return Value

A IDictionary of the matching objects, containing the object names as keys and the corresponding object instances as values.

Implements

IListableObjectFactory.GetObjectsOfType

Remarks

This version of the GetObjectsOfType method matches all kinds of object definitions, be they singletons, prototypes, or IFactoryObjects. Typically, the results of this method call will be the same as a call to

IListableObjectFactory.GetObjectsOfType(type,true,true)
.

Exceptions

Exception Type Condition
ObjectsException If the objects could not be created.

See Also

StaticListableObjectFactory Class | Spring.Objects.Factory.Support Namespace | StaticListableObjectFactory.GetObjectsOfType Overload List