Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

XmlObjectFactory Class

Convenience extension of DefaultListableObjectFactory that reads object definitions from an XML document or element.

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

System.Object
   AbstractObjectFactory
      AbstractAutowireCapableObjectFactory
         DefaultListableObjectFactory
            XmlObjectFactory

[Visual Basic]
<Serializable> _
<DefaultMember(MemberName:="Item")> _
Public Class XmlObjectFactory
    Inherits DefaultListableObjectFactory
[C#]
[Serializable]
[DefaultMember(MemberName="Item")]
public class XmlObjectFactory : DefaultListableObjectFactory

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Delegates to XmlObjectDefinitionReader underneath; effectively equivalent to using a XmlObjectDefinitionReader for a DefaultListableObjectFactory.

Note   objects doesn't need to be the root element of the XML document: this class will parse all object definition elements in the XML stream.

This class registers each object definition with the DefaultListableObjectFactory superclass, and relies on the latter's implementation of the IObjectFactory interface. It supports singletons, prototypes and references to either of these kinds of object.

Requirements

Namespace: Spring.Objects.Factory.Xml

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

See Also

XmlObjectFactory Members | Spring.Objects.Factory.Xml Namespace