C# Class Castle.MicroKernel.ComponentActivator.DefaultComponentActivator

Inheritance: AbstractComponentActivator
Show file Open project: castleproject/Windsor

Public Methods

Method Description
DefaultComponentActivator ( ComponentModel model, IKernelInternal kernel, ComponentInstanceDelegate onCreation, ComponentInstanceDelegate onDestruction ) : System

Initializes a new instance of the DefaultComponentActivator class.

Protected Methods

Method 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

Method 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 method

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

CreateConstructorArguments() protected method

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

CreateInstance() protected method

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

CreateInstanceCore() protected method

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

DefaultComponentActivator() public method

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
return System

Instantiate() protected method

protected Instantiate ( CreationContext context ) : object
context Castle.MicroKernel.Context.CreationContext
return object

InternalCreate() protected method

protected InternalCreate ( CreationContext context ) : object
context Castle.MicroKernel.Context.CreationContext
return object

InternalDestroy() protected method

protected InternalDestroy ( object instance ) : void
instance object
return void

SelectEligibleConstructor() protected method

protected SelectEligibleConstructor ( CreationContext context ) : ConstructorCandidate
context Castle.MicroKernel.Context.CreationContext
return Castle.Core.ConstructorCandidate

SetUpProperties() protected method

protected SetUpProperties ( object instance, CreationContext context ) : void
instance object
context Castle.MicroKernel.Context.CreationContext
return void