C# Class Spring.Data.Config.DatabaseNamespaceParser

Inheritance: Spring.Objects.Factory.Xml.AbstractSingleObjectDefinitionParser
Datei anzeigen Open project: spring-projects/spring-net

Public Methods

Method Description
ParseElement ( XmlElement element, ParserContext parserContext ) : IObjectDefinition

Parse the specified element and register any resulting IObjectDefinitions with the IObjectDefinitionRegistry that is embedded in the supplied ParserContext.

Implementations should return the primary IObjectDefinition that results from the parse phase if they wish to used nested inside (for example) a <property> tag.

Implementations may return null if they will not be used in a nested scenario.

Private Methods

Method Description
DatabaseNamespaceParser ( ) : System.Xml
GetTypeName ( XmlElement element ) : string

Gets the name of the object type for the specified element.

ParseDbProviderConfigurer ( XmlElement element, string name, ParserContext parserContext ) : IConfigurableObjectDefinition
ParseDbProviderDefinition ( XmlElement element, string name, ParserContext parserContext ) : IConfigurableObjectDefinition

Parses database provider definitions.

ParseDbProviderFactoryObject ( XmlElement element, string name, ParserContext parserContext ) : IConfigurableObjectDefinition

Method Details

ParseElement() public method

Parse the specified element and register any resulting IObjectDefinitions with the IObjectDefinitionRegistry that is embedded in the supplied ParserContext.
Implementations should return the primary IObjectDefinition that results from the parse phase if they wish to used nested inside (for example) a <property> tag.

Implementations may return null if they will not be used in a nested scenario.

public ParseElement ( XmlElement element, ParserContext parserContext ) : IObjectDefinition
element System.Xml.XmlElement The element to be parsed into one or more IObjectDefinitions
parserContext Spring.Objects.Factory.Xml.ParserContext The object encapsulating the current state of the parsing /// process.
return IObjectDefinition