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

Extension of the Spring.Objects.Factory.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.


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


Spring.Objects.Factory.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 Spring.Objects.Factory.IHierarchicalObjectFactory, the return values will not take any Spring.Objects.Factory.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.


Namespace: Spring.Objects.Factory

Platforms:Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

Assembly: Spring.Core (in Spring.Core.dll)

See Also

© 2011 All Rights Reserved.