Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.SingletonCount Property

Gets the number of singleton beans registered in this registry.

[Visual Basic]
Public NotOverridable ReadOnly Property SingletonCount() As Integer _
    Implements ISingletonObjectRegistry.SingletonCount

   Public Get
   End Get
End Property
public int SingletonCount { public get; }

Property Value

The number of singleton objects.




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

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace