C# Class Griffin.Container.BuildPlans.GenericBuildPlan

Used to build generics.
Inheritance: Griffin.Container.BuildPlans.ConcreteBuildPlan
Exibir arquivo Open project: jgauffin/Griffin.Container

Public Methods

Method Description
GenericBuildPlan ( Type concreteType, IEnumerable services, Lifetime lifetime, IInstanceStrategy instanceStrategy ) : System

Initializes a new instance of the GenericBuildPlan class.

Protected Methods

Method Description
Create ( CreateContext context, object arguments ) : object

Creates the actual instance

Uses the

GetCreateDelegate ( ) : ObjectActivator

Used to create the delegate used to create the instance.

Method Details

Create() protected method

Creates the actual instance
Uses the
protected Create ( CreateContext context, object arguments ) : object
context CreateContext
arguments object Constructor arguments
return object

GenericBuildPlan() public method

Initializes a new instance of the GenericBuildPlan class.
public GenericBuildPlan ( Type concreteType, IEnumerable services, Lifetime lifetime, IInstanceStrategy instanceStrategy ) : System
concreteType System.Type Type to construct.
services IEnumerable Servies
lifetime Lifetime The lifetime.
instanceStrategy IInstanceStrategy Used to either fetch or create an instance.
return System

GetCreateDelegate() protected method

Used to create the delegate used to create the instance.
protected GetCreateDelegate ( ) : ObjectActivator
return ObjectActivator