Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DefaultListableObjectFactory.GetObjectsOfType(Type, Boolean, Boolean) Method

Return the object instances that match the given object Type (including subclasses).

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

Parameters

type
The Type (class or interface) to match.
includePrototypes
Whether to include prototype objects too or just singletons (also applies to IFactoryObjects).
includeFactoryObjects
Whether to include IFactoryObjects too or just normal objects.

Return Value

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

Implements

IListableObjectFactory.GetObjectsOfType

Exceptions

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

See Also

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