Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IObjectDefinition.DependsOn Property

The object names that this object depends on.

[Visual Basic]
Public MustOverride ReadOnly Property DependsOn() As String
   Public Get
   End Get
End Property
[C#]
public string[] DependsOn { public get; }

Remarks

The object factory will guarantee that these objects get initialized before.

Note that dependencies are normally expressed through object properties or constructor arguments. This property should just be necessary for other kinds of dependencies like statics (*ugh*) or database preparation on startup.

See Also

IObjectDefinition Interface | Spring.Objects.Factory.Config Namespace