Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractFactoryObject Class

Simple template superclass for IFactoryObject implementations that allows for the creation of a singleton or a prototype instance (depending on a flag).

For a list of all members of this type, see AbstractFactoryObject Members .

System.Object
   AbstractFactoryObject
      Derived types

[Visual Basic]
<Serializable> _
Public MustInherit Class AbstractFactoryObject
    Implements IFactoryObject, IInitializingObject, IDisposable
[C#]
[Serializable]
public abstract class AbstractFactoryObject : IFactoryObject, IInitializingObject, IDisposable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

If the value of the IsSingleton property is true (this is the default), this class will create a single instance of it's object upon initialization and subsequently return the singleton instance; else, this class will create a new instance each time (prototype mode). Subclasses must implement the abstract (MustInherit in Visual Basic)CreateInstance template method to actually create objects.

Requirements

Namespace: Spring.Objects.Factory.Config

Assembly: Spring.Core (in Spring.Core.dll)

See Also

AbstractFactoryObject Members | Spring.Objects.Factory.Config Namespace