Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.RegisterSingleton Method

Register the given existing object as singleton in the object factory, under the given object name.

[Visual Basic]
Public NotOverridable Sub RegisterSingleton( _
   ByVal name As String, _
   ByVal singletonObject As Object _
) _
    Implements ISingletonObjectRegistry.RegisterSingleton
[C#]
public void RegisterSingleton(
   string name,
   object singletonObject
);

Implements

ISingletonObjectRegistry.RegisterSingleton

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace | RegisterSingleton