Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IObjectDefinition.IsSingleton Property

Return whether this a Singleton, with a single, shared instance returned on all calls.

[Visual Basic]
Public MustOverride ReadOnly Property IsSingleton() As Boolean
   Public Get
   End Get
End Property
[C#]
public bool IsSingleton { public get; }

Remarks

If false, an object factory will apply the Prototype design pattern, with each caller requesting an instance getting an independent instance. How this is defined will depend on the object factory implementation. Singletons are the commoner type.

See Also

IObjectDefinition Interface | Spring.Objects.Factory.Config Namespace