Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DefaultListableObjectFactory.DoGetObjectNamesForType Method

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

[Visual Basic]
Protected Sub DoGetObjectNamesForType( _
   ByVal type As Type, _
   ByVal includeNonSingletons As Boolean, _
   ByVal allowEagerInit As Boolean _
)
[C#]
protected IList DoGetObjectNamesForType(
   Type type,
   bool includeNonSingletons,
   bool allowEagerInit
);

Parameters

type
The Type (class or interface) to match.
includeNonSingletons
Whether to include prototype objects too or just singletons (also applies to IFactoryObjects).
allowEagerInit
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.

Exceptions

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

See Also

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