C# Класс Castle.MicroKernel.ComponentActivator.DefaultComponentActivator

Наследование: AbstractComponentActivator
Показать файл Открыть проект

Открытые методы

Метод Описание
DefaultComponentActivator ( ComponentModel model, IKernelInternal kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction ) : System

Initializes a new instance of the DefaultComponentActivator class.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CanSatisfyDependency() защищенный Метод

protected CanSatisfyDependency ( CreationContext context, DependencyModel dependency ) : bool
context Castle.MicroKernel.Context.CreationContext
dependency Castle.Core.DependencyModel
Результат bool

CreateConstructorArguments() защищенный Метод

protected CreateConstructorArguments ( ConstructorCandidate constructor, CreationContext context ) : object[]
constructor Castle.Core.ConstructorCandidate
context Castle.MicroKernel.Context.CreationContext
Результат object[]

CreateInstance() защищенный Метод

protected CreateInstance ( CreationContext context, ConstructorCandidate constructor, object arguments ) : object
context Castle.MicroKernel.Context.CreationContext
constructor Castle.Core.ConstructorCandidate
arguments object
Результат object

CreateInstanceCore() защищенный Метод

protected CreateInstanceCore ( ConstructorCandidate constructor, object arguments, Type implType ) : object
constructor Castle.Core.ConstructorCandidate
arguments object
implType System.Type
Результат object

DefaultComponentActivator() публичный Метод

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
Результат System

Instantiate() защищенный Метод

protected Instantiate ( CreationContext context ) : object
context Castle.MicroKernel.Context.CreationContext
Результат object

InternalCreate() защищенный Метод

protected InternalCreate ( CreationContext context ) : object
context Castle.MicroKernel.Context.CreationContext
Результат object

InternalDestroy() защищенный Метод

protected InternalDestroy ( object instance ) : void
instance object
Результат void

SelectEligibleConstructor() защищенный Метод

protected SelectEligibleConstructor ( CreationContext context ) : ConstructorCandidate
context Castle.MicroKernel.Context.CreationContext
Результат Castle.Core.ConstructorCandidate

SetUpProperties() защищенный Метод

protected SetUpProperties ( object instance, CreationContext context ) : void
instance object
context Castle.MicroKernel.Context.CreationContext
Результат void