Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

WebObjectFactory.GetSingleton Method

Tries to find cached object for the specified name.

[Visual Basic]
Public Overrides Sub GetSingleton( _
   ByVal objectName As String _
) _
    Implements ISingletonObjectRegistry.GetSingleton
[C#]
public override object GetSingleton(
   string objectName
);

Parameters

objectName
Object name to look for.

Return Value

Cached object if found, null otherwise.

Implements

ISingletonObjectRegistry.GetSingleton

Remarks

This implementation tries to find object first in the Request scope, then in the Session scope and finally in the Application scope.

See Also

WebObjectFactory Class | Spring.Objects.Factory.Support Namespace