Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MethodInjectingInstantiationStrategy.InstantiateWithMethodInjection(RootObjectDefinition, String, IObjectFactory, ConstructorInfo, Object) Method

Instantiate an instance of the object described by the supplied definition from the supplied factory, injecting methods as appropriate.

[Visual Basic]
Protected Overrides Overloads Sub InstantiateWithMethodInjection( _
   ByVal definition As RootObjectDefinition, _
   ByVal objectName As String, _
   ByVal factory As IObjectFactory, _
   ByVal constructor As ConstructorInfo, _
   ByVal arguments As Object _
)
[C#]
protected override object InstantiateWithMethodInjection(
   RootObjectDefinition definition,
   string objectName,
   IObjectFactory factory,
   ConstructorInfo constructor,
   object[] arguments
);

Parameters

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

Return Value

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

See Also

MethodInjectingInstantiationStrategy Class | Spring.Objects.Factory.Support Namespace | MethodInjectingInstantiationStrategy.InstantiateWithMethodInjection Overload List | InstantiateWithMethodInjection