Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.GetSingleton Method

Tries to find a cached object for the specified name.

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

Parameters

objectName
Teh object name to look for.

Return Value

The cached object if found, a null reference (Nothing in Visual Basic) otherwise.

Implements

ISingletonObjectRegistry.GetSingleton

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace