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

More generic alternative to ArrayResolver and ListResolver. It supports arrays as well as any generic interface type assignable from arrays.
The collection instance that is provided is read only, even for interfaces like IList{T}
Inheritance: ISubDependencyResolver
Afficher le fichier Open project: castleproject/Windsor

Protected Properties

Свойство Type Description
allowEmptyCollections bool
kernel IKernel

Méthodes publiques

Méthode Description
CanResolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : bool
CollectionResolver ( IKernel kernel, bool allowEmptyCollections = false ) : System
Resolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : object

Méthodes protégées

Méthode Description
CanSatisfy ( Type itemType ) : bool
GetItemType ( Type targetItemType ) : Type
HasParameter ( DependencyModel dependency ) : bool

Method Details

CanResolve() public méthode

public CanResolve ( CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency ) : bool
context Castle.MicroKernel.Context.CreationContext
contextHandlerResolver ISubDependencyResolver
model Castle.Core.ComponentModel
dependency Castle.Core.DependencyModel
Résultat bool

CanSatisfy() protected méthode

protected CanSatisfy ( Type itemType ) : bool
itemType System.Type
Résultat bool

CollectionResolver() public méthode

public CollectionResolver ( IKernel kernel, bool allowEmptyCollections = false ) : System
kernel IKernel
allowEmptyCollections bool
Résultat System

GetItemType() protected méthode

protected GetItemType ( Type targetItemType ) : Type
targetItemType System.Type
Résultat System.Type

HasParameter() protected méthode

protected HasParameter ( DependencyModel dependency ) : bool
dependency Castle.Core.DependencyModel
Résultat bool

Resolve() public méthode

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
Résultat object

Property Details

allowEmptyCollections protected_oe property

protected bool allowEmptyCollections
Résultat bool

kernel protected_oe property

protected IKernel kernel
Résultat IKernel