Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IListableObjectFactory.GetObjectNamesForType(Type, Boolean, Boolean) Method

Return the names of objects matching the given Type (including subclasses), judging from the object definitions.

[Visual Basic]
Public Sub GetObjectNamesForType( _
   ByVal type As Type, _
   ByVal includePrototypes As Boolean, _
   ByVal includeFactoryObjects As Boolean _
)
[C#]
string[] GetObjectNamesForType(
   Type type,
   bool includePrototypes,
   bool includeFactoryObjects
);

Parameters

type
The Type (class or interface) to match, or a null reference (Nothing in Visual Basic) for all object names.
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

The names of all objects defined in this factory, or an empty array if none are defined.

Remarks

Does consider objects created by IFactoryObjects, or rather it considers the type of objects created by IFactoryObject (which means that IFactoryObjects will be instantiated).

Does not consider any hierarchy this factory may participate in. Use ObjectNamesForTypeIncludingAncestors to include beans in ancestor factories too. <p>Note: Does <i>not</i> ignore singleton objects that have been registered by other means than bean definitions.

See Also

IListableObjectFactory Interface | Spring.Objects.Factory Namespace | IListableObjectFactory.GetObjectNamesForType Overload List