Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

StaticListableObjectFactory.AddObject Method

Add a new singleton object.

[Visual Basic]
Public Sub AddObject( _
   ByVal name As String, _
   ByVal instance As Object _
)
[C#]
public void AddObject(
   string name,
   object instance
);

Parameters

name
The name to be associated with the object name.
instance
The singleton object.

See Also

StaticListableObjectFactory Class | Spring.Objects.Factory.Support Namespace