Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAutowireCapableObjectFactory.InstantiateObject(String, RootObjectDefinition, Object, Boolean, Boolean) Method

Create an object instance for the given object definition.

[Visual Basic]
Protected Overrides Overloads Sub InstantiateObject( _
   ByVal name As String, _
   ByVal definition As RootObjectDefinition, _
   ByVal arguments As Object, _
   ByVal allowEagerCaching As Boolean, _
   ByVal suppressConfigure As Boolean _
)
[C#]
protected override object InstantiateObject(
   string name,
   RootObjectDefinition definition,
   object[] arguments,
   bool allowEagerCaching,
   bool suppressConfigure
);

Parameters

name
The name of the object.
definition
The object definition for the object that is to be instantiated.
arguments
The arguments to use if creating a prototype using explicit arguments to a static factory method. It is invalid to use a non-a null reference (Nothing in Visual Basic) arguments value in any other case.
allowEagerCaching
Whether eager caching of singletons is allowed... typically true for singlton objects, but never true for inner object definitions.
suppressConfigure
Suppress injecting dependencies yet.

Return Value

A new instance of the object.

Remarks

The object definition will already have been merged with the parent definition in case of a child definition.

All the other methods in this class invoke this method, although objects may be cached after being instantiated by this method. All object instantiation within this class is performed by this method.

Exceptions

Exception Type Condition
ObjectsException In case of errors.

See Also

AbstractAutowireCapableObjectFactory Class | Spring.Objects.Factory.Support Namespace | AbstractAutowireCapableObjectFactory.InstantiateObject Overload List