Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectDefinition.IsSingleton Property

Is this definition a singleton, with a single, shared instance returned on all calls to an enclosing container (typically an IObjectFactory or IApplicationContext).

[Visual Basic]
Public Overridable Property IsSingleton() As Boolean _
    Implements IObjectDefinition.IsSingleton

   Public Get
   End Get
   Public Set
   End Set
End Property
public virtual 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

AbstractObjectDefinition Class | Spring.Objects.Factory.Support Namespace | IObjectFactory