Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IInstantiationStrategy.Instantiate(RootObjectDefinition, String, IObjectFactory, MethodInfo, Object) Method

Instantiate an instance of the object described by the supplied definition from the supplied factory.

[Visual Basic]
Public Sub Instantiate( _
   ByVal definition As RootObjectDefinition, _
   ByVal name As String, _
   ByVal factory As IObjectFactory, _
   ByVal factoryMethod As MethodInfo, _
   ByVal arguments As Object _
)
[C#]
object Instantiate(
   RootObjectDefinition definition,
   string name,
   IObjectFactory factory,
   MethodInfo factoryMethod,
   object[] arguments
);

Parameters

definition
The definition of the object that is to be instantiated.
name
The name associated with the object definition. The name can be the null or zero length string if we're autowiring an object that doesn't belong to the supplied factory.
factory
The owning IObjectFactory
factoryMethod
The MethodInfo to be used to get the object.
arguments
Any arguments to the supplied factoryMethod. May be null.

Return Value

An instance of the object described by the supplied definition from the supplied factory.

See Also

IInstantiationStrategy Interface | Spring.Objects.Factory.Support Namespace | IInstantiationStrategy.Instantiate Overload List