Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ISingletonObjectRegistry.SingletonCount Property

Gets the number of singleton beans registered in this registry.

[Visual Basic]
Public MustOverride ReadOnly Property SingletonCount() As Integer
   Public Get
   End Get
End Property
[C#]
public int SingletonCount { public get; }

Property Value

The number of singleton objects.

Remarks

Only checks already instantiated singletons; does not count singleton object definitions which have not been instantiated yet.

The main purpose of this method is to check manually registered singletons RegisterSingleton. Can also be used to count the number of singletons defined by an object definition that have already been created.

See Also

ISingletonObjectRegistry Interface | Spring.Objects.Factory.Config Namespace