Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectDefinitionConstants.SingletonAttribute Field

Is this object a "singleton" (one shared instance, which will be returned by all calls to GetObject with the id), or a "prototype" (independent instance resulting from each call to GetObject).

[Visual Basic]
Public Const SingletonAttribute As String = singleton
[C#]
public const string SingletonAttribute = singleton;

Remarks

Singletons are most commonly used, and are ideal for multi-threaded service objects.

See Also

ObjectDefinitionConstants Class | Spring.Objects.Factory.Xml Namespace | IObjectFactory