Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectDefinition.DependsOn Property

The object names that this object depends on.

[Visual Basic]
Public NotOverridable Property DependsOn() As String _
    Implements IObjectDefinition.DependsOn

   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 this object definition.

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

See Also

AbstractObjectDefinition Class | Spring.Objects.Factory.Support Namespace