Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractFactoryObject.IsSingleton Property

Is the object managed by this factory a singleton or a prototype?

[Visual Basic]
Public NotOverridable Property IsSingleton() As Boolean _
    Implements IFactoryObject.IsSingleton

   Public Get
   End Get
   Public Set
   End Set
End Property
public bool IsSingleton { public get; public set; }




Please note that changing the value of this property after this factory object instance has been created by an enclosing Spring.NET IoC container really is a programming error. This property should really only be set once, prior to the invocation of the AfterPropertiesSet callback method.

See Also

AbstractFactoryObject Class | Spring.Objects.Factory.Config Namespace