C# Class Ninject.Activation.Strategies.PropertyInjectionStrategy

Injects properties on an instance during activation.
Inheritance: Ninject.Activation.Strategies.ActivationStrategy
Show file Open project: ninject/Ninject Class Usage Examples

Private Properties

Property Type Description
AssignPropertyOverrides void
GetValue object

Public Methods

Method Description
Activate ( IContext context, InstanceReference reference ) : void

Injects values into the properties as described by PropertyInjectionDirectives contained in the plan.

PropertyInjectionStrategy ( IInjectorFactory injectorFactory ) : System

Initializes a new instance of the PropertyInjectionStrategy class.

Private Methods

Method Description
AssignPropertyOverrides ( IContext context, InstanceReference reference, IList propertyValues ) : void

Applies user supplied override values to instance properties.

GetValue ( IContext context, ITarget target, IEnumerable allPropertyValues ) : object

Gets the value to inject into the specified target.

Method Details

Activate() public method

Injects values into the properties as described by PropertyInjectionDirectives contained in the plan.
public Activate ( IContext context, InstanceReference reference ) : void
context IContext The context.
reference InstanceReference A reference to the instance being activated.
return void

PropertyInjectionStrategy() public method

Initializes a new instance of the PropertyInjectionStrategy class.
public PropertyInjectionStrategy ( IInjectorFactory injectorFactory ) : System
injectorFactory IInjectorFactory The injector factory component.
return System