Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAutowireCapableObjectFactory.AutowireObjectProperties Method

Autowire the object properties of the given object instance by name or Type.

[Visual Basic]
Public Overridable Sub AutowireObjectProperties( _
   ByVal instance As Object, _
   ByVal autowireMode As AutoWiringMode, _
   ByVal dependencyCheck As Boolean _
) _
    Implements IAutowireCapableObjectFactory.AutowireObjectProperties
[C#]
public virtual void AutowireObjectProperties(
   object instance,
   AutoWiringMode autowireMode,
   bool dependencyCheck
);

Parameters

instance
The existing object instance.
autowireMode
The desired autowiring mode.
dependencyCheck
Whether to perform a dependency check for the object.

Implements

IAutowireCapableObjectFactory.AutowireObjectProperties

Exceptions

Exception Type Condition
ObjectsException If the wiring fails.
ArgumentException If the supplied autowireMode is not one of the or values.

See Also

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