Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectFactoryUtils.ObjectNamesForTypeIncludingAncestors(IListableObjectFactory, Type) Method

Get all object names for the given type, including those defined in ancestor factories.

[Visual Basic]
Public Overloads Shared Sub ObjectNamesForTypeIncludingAncestors( _
   ByVal factory As IListableObjectFactory, _
   ByVal type As Type _
)
[C#]
public static string[] ObjectNamesForTypeIncludingAncestors(
   IListableObjectFactory factory,
   Type type
);

Parameters

factory
If this isn't also an IHierarchicalObjectFactory, this method will return the same as it's own GetObjectDefinitionNames method.
type
The Type that objects must match.

Return Value

The array of object names, or an empty array if none.

Remarks

Will return unique names in case of overridden object definitions.

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

See Also

ObjectFactoryUtils Class | Spring.Objects.Factory Namespace | ObjectFactoryUtils.ObjectNamesForTypeIncludingAncestors Overload List