Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IConfigurableObjectDefinition.IsSingleton Property

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

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


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

IConfigurableObjectDefinition Interface | Spring.Objects.Factory.Support Namespace