Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

XmlObjectFactory Constructor

Creates a new instance of the XmlObjectFactory class, with the given resource, which must be parsable using DOM, and the given parent factory.

[Visual Basic]
Public Overloads Sub New( _
   ByVal resource As IResource, _
   ByVal parentFactory As IObjectFactory _
)
[C#]
XmlObjectFactory(
   IResource resource,
   IObjectFactory parentFactory
);

Parameters

resource
The XML resource to load object definitions from.
parentFactory
The parent object factory (may be a null reference (Nothing in Visual Basic)).

Exceptions

Exception Type Condition
ObjectsException In the case of loading or parsing errors.

See Also

XmlObjectFactory Class | Spring.Objects.Factory.Xml Namespace | XmlObjectFactory Constructor Overload List