Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAutowireCapableObjectFactory.AutowireByType Method

Defines "autowire by type" (object properties by type) behavior.

[Visual Basic]
Protected Sub AutowireByType( _
   ByVal name As String, _
   ByVal definition As RootObjectDefinition, _
   ByVal wrapper As IObjectWrapper, _
   ByVal properties As MutablePropertyValues _
)
[C#]
protected void AutowireByType(
   string name,
   RootObjectDefinition definition,
   IObjectWrapper wrapper,
   MutablePropertyValues properties
);

Parameters

name
The object name to be autowired by Type.
definition
The definition of the named object to update through autowiring.
wrapper
The IObjectWrapper wrapping the target object (and from which we can rip out information concerning the object).
properties
The property values to register wired objects with.

Remarks

This is like PicoContainer default, in which there must be exactly one object of the property type in the object factory. This makes object factories simple to configure for small namespaces, but doesn't work as well as standard Spring behavior for bigger applications.

See Also

AbstractAutowireCapableObjectFactory Class | Spring.Objects.Factory.Support Namespace