Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

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.

For a list of all members of this type, see IListableObjectFactory Members .


[Visual Basic]
Public Interface IListableObjectFactory
    Implements IObjectFactory, IDisposable
public interface IListableObjectFactory : IObjectFactory, IDisposable

Types that implement IListableObjectFactory

Type Description
AbstractApplicationContext Partial implementation of the IApplicationContext interface.
AbstractXmlApplicationContext Convenient abstract superclass for IApplicationContext implementations that draw their configuration from XML documents containing object definitions as understood by an XmlObjectDefinitionReader.
GenericApplicationContext Generic ApplicationContext implementation that holds a single internal DefaultListableObjectFactory instance and does not assume a specific object definition format.
StaticApplicationContext IApplicationContext that allows concrete registration of objects and messages in code, rather than from external configuration sources.
WebApplicationContext Web application context, taking the context definition files from the file system or from URLs. Treats resource paths as web resources, when using IApplicationContext.GetResource. Resource paths are considered relative to the virtual directory. Note: In case of multiple config locations, later object definitions will override ones defined in earlier loaded files. This can be leveraged to deliberately override certain object definitions via an extra XML file.
XmlApplicationContext An IApplicationContext implementation that reads context definitions from XML based resources.
DefaultListableObjectFactory Concrete implementation of the IListableObjectFactory and IObjectDefinitionRegistry interfaces.
StaticListableObjectFactory Static factory that permits the registration of existing singleton instances.
WebObjectFactory Concrete implementation of IListableObjectFactory that knows how to handle IWebObjectDefinitions.
XmlObjectFactory Convenience extension of DefaultListableObjectFactory that reads object definitions from an XML document or element.


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.


Namespace: Spring.Objects.Factory

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

See Also

IListableObjectFactory Members | Spring.Objects.Factory Namespace