Spring.Core Send comments on this topic.
IListableObjectFactory Interface
See Also  Members  
Spring.Objects.Factory Namespace : IListableObjectFactory Interface


Extension of the IObjectFactory interface to be implemented by object factories that can enumerate all their object instances, rather than attempting object lookup by name one by one as requested by clients.

Syntax

Visual Basic (Declaration) 
Public Interface IListableObjectFactory 
   Inherits IObjectFactory 
Visual Basic (Usage)Copy Code
Dim instance As IListableObjectFactory
C# 
public interface IListableObjectFactory : IObjectFactory  

Remarks

IObjectFactory implementations that preload all their objects (for example, DOM-based XML factories) may implement this interface. This interface is discussed in "Expert One-on-One J2EE Design and Development", by Rod Johnson.

If this is an IHierarchicalObjectFactory, the return values will not take any IObjectFactory hierarchy into account, but will relate only to the objects defined in the current factory. Use the ObjectFactoryUtils helper class to get all objects.

With the exception of ObjectDefinitionCount, the methods and properties in this interface are not designed for frequent invocation. Implementations may be slow.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also