Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAutowireCapableObjectFactory.Autowire Method

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

[Visual Basic]
Public Overridable Sub Autowire( _
   ByVal type As Type, _
   ByVal autowireMode As AutoWiringMode, _
   ByVal dependencyCheck As Boolean _
) _
    Implements IAutowireCapableObjectFactory.Autowire
[C#]
public virtual 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.

Implements

IAutowireCapableObjectFactory.Autowire

Exceptions

Exception Type Condition
ObjectsException If the wiring fails.

See Also

AbstractAutowireCapableObjectFactory Class | Spring.Objects.Factory.Support Namespace | AutoWiringMode