Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebObjectFactory.CreateAndCacheSingletonInstance Method

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

[Visual Basic]
Protected Overrides Sub CreateAndCacheSingletonInstance( _
   ByVal objectName As String, _
   ByVal objectDefinition As RootObjectDefinition, _
   ByVal arguments As Object _
protected override 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. It is invalid to use a non-null arguments value in any other case.

Return Value

The created object instance.

See Also

WebObjectFactory Class | Spring.Objects.Factory.Support Namespace