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 _
)
[C#]
public ObjectDefinitionHolder ParseObjectDefinitionElement(
   XmlElement element,
   IObjectDefinition containingDefinition
);

Parameters

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

Return Value

The parsed object definition wrapped within an ObjectDefinitionHolder instance.

Remarks

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