Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectDefinitionParserHelper.ParseObjectDefinitionElement(XmlElement, IObjectDefinition) Method

Parse a standard object definition into a ObjectDefinitionHolder, including object name and aliases.

[Visual Basic]
Public Overloads Sub ParseObjectDefinitionElement( _
   ByVal element As XmlElement, _
   ByVal containingDefinition As IObjectDefinition _
public ObjectDefinitionHolder ParseObjectDefinitionElement(
   XmlElement element,
   IObjectDefinition containingDefinition


The element containing the object definition.
The containing object definition if element is a nested element.

Return Value

The parsed object definition wrapped within an ObjectDefinitionHolder instance.


Object elements specify their canonical name via the "id" attribute and their aliases as a delimited "name" attribute.

If no "id" is specified, uses the first name in the "name" attribute as the canonical name, registering all others as aliases.

See Also

ObjectDefinitionParserHelper Class | Spring.Objects.Factory.Xml Namespace | ObjectDefinitionParserHelper.ParseObjectDefinitionElement Overload List