Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

StaticApplicationContext.RegisterSingleton Method

Register a singleton object with the default object factory.

[Visual Basic]
Public Sub RegisterSingleton( _
   ByVal name As String, _
   ByVal classType As Type, _
   ByVal propertyValues As MutablePropertyValues _
)
[C#]
public void RegisterSingleton(
   string name,
   Type classType,
   MutablePropertyValues propertyValues
);

Parameters

name
The name of the object.
classType
The Type of the object.
propertyValues
The property values for the singleton instance.

See Also

StaticApplicationContext Class | Spring.Context.Support Namespace