Return a single object of the given type or subtypes, also picking up objects defined in ancestor object factories if the current object factory is an IHierarchicalObjectFactory.
A single object of the given type or subtypes.
Useful convenience method when we expect a single object and don't care about the object name.
|ObjectsException||If the object could not be created.|
|NoSuchObjectDefinitionException||If more than one instance of an object was found.|