Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractSingleObjectDefinitionParser.GetObjectType Method

Gets the type of the object corresponding to the supplied XmlElement.

[Visual Basic]
Protected Overridable Sub GetObjectType( _
   ByVal element As XmlElement _
protected virtual Type GetObjectType(
   XmlElement element


The element.

Return Value

The Type of the class that is being defined via parsing the supplied Element.


Note that, for application classes, it is generally preferable to override

instad, in order to avoid a direct dependence on the object implementation class. The ObjectDefinitionParser and its IXmlObjectDefinitionParser (namespace parser) can be used within an IDE add-in then, even if the application classses are not available in the add-ins AppDomain.

See Also

AbstractSingleObjectDefinitionParser Class | Spring.Objects.Factory.Xml Namespace