Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectsNamespaceParser.CalculateId Method

NOTE: This method is now obsolete.

This method will be dropped, override ObjectDefinitionParserHelper.PostProcessObjectNameAndAliases instead


Calculates an id for an object definition.

[Visual Basic]
<Obsolete(Message:="This method will be dropped, override ObjectDefinitionParserHelper.PostProcessObjectNameAndAliases instead", IsError:=False)> _
Protected Overridable Sub CalculateId( _
   ByVal element As XmlElement, _
   ByVal aliases As ArrayList _
)
[C#]
[Obsolete(Message="This method will be dropped, override ObjectDefinitionParserHelper.PostProcessObjectNameAndAliases instead", IsError=False)]
protected virtual string CalculateId(
   XmlElement element,
   ArrayList aliases
);

Parameters

element
The element containing the object definition.
aliases
The list of names defined for the object; may be or even empty.

Return Value

A calculated object definition id.

Remarks

Called when an object definition has not been explicitly defined with an id.

See Also

ObjectsNamespaceParser Class | Spring.Objects.Factory.Xml Namespace