Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebObjectFactory.CreateAndCacheScopedSingletonInstance Method

Creates a singleton instance for the specified object name and definition and caches the instance in the specified dictionary

[Visual Basic]
Protected Overridable Sub CreateAndCacheScopedSingletonInstance( _
   ByVal objectName As String, _
   ByVal objectDefinition As RootObjectDefinition, _
   ByVal arguments As Object, _
   ByVal scopedSingletonCache As IDictionary _
)
[C#]
protected virtual object CreateAndCacheScopedSingletonInstance(
   string objectName,
   RootObjectDefinition objectDefinition,
   object[] arguments,
   IDictionary scopedSingletonCache
);

Parameters

objectName
The object name (will be used as the key in the singleton cache key).
objectDefinition
The object definition.
arguments
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.
scopedSingletonCache
the dictionary to be used for caching singleton instances

Return Value

The created object instance.

Remarks

If the object is successfully created, scopedSingletonCache contains the cached instance with the key objectName.

See Also

WebObjectFactory Class | Spring.Objects.Factory.Support Namespace