Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectsNamespaceParser.ParseObjectDefinitionElement(XmlElement, ParserContext, Boolean) Method

NOTE: This method is now obsolete.

not used anymore - ObjectsNamespaceParser will be dropped with 2.x, use ObjectDefinitionParserHelper instead


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

[Visual Basic]
<Obsolete(Message:="not used anymore - ObjectsNamespaceParser will be dropped with 2.x, use ObjectDefinitionParserHelper instead", IsError:=False)> _
Protected Overloads Sub ParseObjectDefinitionElement( _
   ByVal element As XmlElement, _
   ByVal parserContext As ParserContext, _
   ByVal nestedDefinition As Boolean _
)
[C#]
[Obsolete(Message="not used anymore - ObjectsNamespaceParser will be dropped with 2.x, use ObjectDefinitionParserHelper instead", IsError=False)]
protected ObjectDefinitionHolder ParseObjectDefinitionElement(
   XmlElement element,
   ParserContext parserContext,
   bool nestedDefinition
);

Parameters

element
The element containing the object definition.
parserContext
The parser context.
nestedDefinition
if set to true if we are processing an inner object definition.

Return Value

The 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

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