C# Class Ninject.Extensions.Xml.Processors.BindingBuilderFactory

Factory for the binding builder.
Inheritance: Ninject.Components.NinjectComponent, IBindingBuilderFactory
显示文件 Open project: ninject/Ninject.Extensions.Xml Class Usage Examples

Public Methods

Method Description
Create ( System.Xml.Linq.XElement element, IBindingRoot module ) : IBindingConfigurationSyntax

Creates a new binding builder and returns its binding syntax.

Private Methods

Method Description
GetTypeFromAttributeValue ( System.Xml.Linq.XAttribute attribute ) : Type

Gets the type from attribute value.

HandleToAttribute ( System.Xml.Linq.XElement element, IBindingToSyntax builder ) : IBindingWhenInNamedWithOrOnSyntax

Tries to handle the to attribute.

HandleToProviderAttribute ( System.Xml.Linq.XElement element, IBindingToSyntax builder ) : IBindingWhenInNamedWithOrOnSyntax

Tries to handle the ToProvider attribute.

VerifyElementHasExactlyOneToAttribute ( System.Xml.Linq.XElement element ) : void

Verifies that the specified element has exactly one "to" attribute.

Method Details

Create() public method

Creates a new binding builder and returns its binding syntax.
public Create ( System.Xml.Linq.XElement element, IBindingRoot module ) : IBindingConfigurationSyntax
element System.Xml.Linq.XElement The element.
module IBindingRoot The module.
return IBindingConfigurationSyntax