C# Class Castle.MicroKernel.ComponentActivator.DefaultComponentActivator

Inheritance: AbstractComponentActivator
Afficher le fichier Open project: castleproject/Windsor

Méthodes publiques

Méthode Description
DefaultComponentActivator ( ComponentModel model, IKernelInternal kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction ) : System

Initializes a new instance of the DefaultComponentActivator class.

Méthodes protégées

Méthode Description
CanSatisfyDependency ( CreationContext context, DependencyModel dependency ) : bool
CreateConstructorArguments ( ConstructorCandidate constructor, CreationContext context ) : object[]
CreateInstance ( CreationContext context, ConstructorCandidate constructor, object arguments ) : object
CreateInstanceCore ( ConstructorCandidate constructor, object arguments, Type implType ) : object
Instantiate ( CreationContext context ) : object
InternalCreate ( CreationContext context ) : object
InternalDestroy ( object instance ) : void
SelectEligibleConstructor ( CreationContext context ) : ConstructorCandidate
SetUpProperties ( object instance, CreationContext context ) : void

Private Methods

Méthode Description
BestPossibleScore ( ConstructorCandidate candidate, int candidatePoints ) : bool
BestScoreSoFar ( int candidatePoints, int winnerPoints, ConstructorCandidate winnerCandidate ) : bool
CheckCtorCandidate ( ConstructorCandidate candidate, CreationContext context, int &candidatePoints ) : bool
FastCreateInstance ( Type implType, object arguments, ConstructorCandidate constructor ) : object
ObtainPropertyValue ( CreationContext context, PropertySet property, IDependencyResolver resolver ) : object

Method Details

CanSatisfyDependency() protected méthode

protected CanSatisfyDependency ( CreationContext context, DependencyModel dependency ) : bool
context Castle.MicroKernel.Context.CreationContext
dependency Castle.Core.DependencyModel
Résultat bool

CreateConstructorArguments() protected méthode

protected CreateConstructorArguments ( ConstructorCandidate constructor, CreationContext context ) : object[]
constructor Castle.Core.ConstructorCandidate
context Castle.MicroKernel.Context.CreationContext
Résultat object[]

CreateInstance() protected méthode

protected CreateInstance ( CreationContext context, ConstructorCandidate constructor, object arguments ) : object
context Castle.MicroKernel.Context.CreationContext
constructor Castle.Core.ConstructorCandidate
arguments object
Résultat object

CreateInstanceCore() protected méthode

protected CreateInstanceCore ( ConstructorCandidate constructor, object arguments, Type implType ) : object
constructor Castle.Core.ConstructorCandidate
arguments object
implType System.Type
Résultat object

DefaultComponentActivator() public méthode

Initializes a new instance of the DefaultComponentActivator class.
public DefaultComponentActivator ( ComponentModel model, IKernelInternal kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction ) : System
model Castle.Core.ComponentModel
kernel IKernelInternal
onCreation ComponentInstanceDelegate
onDestruction ComponentInstanceDelegate
Résultat System

Instantiate() protected méthode

protected Instantiate ( CreationContext context ) : object
context Castle.MicroKernel.Context.CreationContext
Résultat object

InternalCreate() protected méthode

protected InternalCreate ( CreationContext context ) : object
context Castle.MicroKernel.Context.CreationContext
Résultat object

InternalDestroy() protected méthode

protected InternalDestroy ( object instance ) : void
instance object
Résultat void

SelectEligibleConstructor() protected méthode

protected SelectEligibleConstructor ( CreationContext context ) : ConstructorCandidate
context Castle.MicroKernel.Context.CreationContext
Résultat Castle.Core.ConstructorCandidate

SetUpProperties() protected méthode

protected SetUpProperties ( object instance, CreationContext context ) : void
instance object
context Castle.MicroKernel.Context.CreationContext
Résultat void