C# Class Castle.MicroKernel.Resolvers.SpecializedResolvers.ListResolver

Handle dependencies of services in the format of generic IList.
This is a complimentary ISubDependencyResolver implementation that is capable of satisfying dependencies of services generic IList.

Note that it will take precedence over service override for lists defined on the configuration.

Inheritance: CollectionResolver
显示文件 Open project: castleproject/Windsor

Public Methods

Method Description
ListResolver ( IKernel kernel ) : System
ListResolver ( IKernel kernel, bool allowEmptyList ) : System
Resolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : object

Protected Methods

Method Description
GetItemType ( Type targetItemType ) : Type

Private Methods

Method Description
BuildListType ( DependencyModel dependency ) : Type

Method Details

GetItemType() protected method

protected GetItemType ( Type targetItemType ) : Type
targetItemType System.Type
return System.Type

ListResolver() public method

public ListResolver ( IKernel kernel ) : System
kernel IKernel
return System

ListResolver() public method

public ListResolver ( IKernel kernel, bool allowEmptyList ) : System
kernel IKernel
allowEmptyList bool
return System

Resolve() public method

public Resolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : object
context Castle.MicroKernel.Context.CreationContext
contextHandlerResolver ISubDependencyResolver
model Castle.Core.ComponentModel
dependency Castle.Core.DependencyModel
return object