Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAutowireCapableObjectFactory.Autowire Method

Create a new object instance of the given class with the specified autowire strategy.

[Visual Basic]
Public Sub Autowire( _
   ByVal type As Type, _
   ByVal autowireMode As AutoWiringMode, _
   ByVal dependencyCheck As Boolean _
)
[C#]
object Autowire(
   Type type,
   AutoWiringMode autowireMode,
   bool dependencyCheck
);

Parameters

type
The Type of the object to instantiate.
autowireMode
The desired autowiring mode.
dependencyCheck
Whether to perform a dependency check for objects (not applicable to autowiring a constructor, thus ignored there).

Return Value

The new object instance.

Exceptions

Exception Type Condition
ObjectsException If the wiring fails.

See Also

IAutowireCapableObjectFactory Interface | Spring.Objects.Factory.Config Namespace | AutoWiringMode