Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.CreateAndCacheSingletonInstance Method

Creates a singleton instance for the specified object name and definition.

[Visual Basic]
Protected Overridable Sub CreateAndCacheSingletonInstance( _
   ByVal objectName As String, _
   ByVal objectDefinition As RootObjectDefinition, _
   ByVal arguments As Object _
protected virtual object CreateAndCacheSingletonInstance(
   string objectName,
   RootObjectDefinition objectDefinition,
   object[] arguments


The object name (will be used as the key in the singleton cache key).
The object definition.
The arguments to use if creating a prototype using explicit arguments to a static factory method. If there is no factory method and the arguments are not null, then match the argument values by type and call the object's constructor.

Return Value

The created object instance.

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace