Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractFactoryObject.CreateInstance Method

Template method that subclasses must override to construct the object returned by this factory.

[Visual Basic]
Protected MustOverride Sub CreateInstance()
[C#]
protected abstract object CreateInstance();

Return Value

A distinct instance of the object created by this factory.

Remarks

Invoked once immediately after the initialization of this IFactoryObject in the case of a singleton; else, on each call to the GetObject method.

Exceptions

Exception Type Condition
Exception If an exception occured during object creation.

See Also

AbstractFactoryObject Class | Spring.Objects.Factory.Config Namespace