Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IConfigurableObjectDefinition.DependsOn Property

The object names that this object depends on.

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


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

IConfigurableObjectDefinition Interface | Spring.Objects.Factory.Support Namespace