Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

DefaultObjectDefinitionDocumentReader.RegisterObjectDefinitions Method

Read object definitions from the given DOM element, and register them with the given object registry.

[Visual Basic]
Public NotOverridable Sub RegisterObjectDefinitions( _
   ByVal doc As XmlDocument, _
   ByVal readerContext As XmlReaderContext _
) _
    Implements IObjectDefinitionDocumentReader.RegisterObjectDefinitions
[C#]
public void RegisterObjectDefinitions(
   XmlDocument doc,
   XmlReaderContext readerContext
);

Parameters

doc
The DOM element containing object definitions, usually the root (document) element.
readerContext
The current context of the reader. Includes the resource being parsed

Return Value

The number of object definitions that were loaded.

Implements

IObjectDefinitionDocumentReader.RegisterObjectDefinitions

Exceptions

Exception Type Condition
ObjectsException In case of parsing errors.

See Also

DefaultObjectDefinitionDocumentReader Class | Spring.Objects.Factory.Xml Namespace