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()
protected abstract object CreateInstance();

Return Value

A distinct instance of the object created by this factory.


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


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

See Also

AbstractFactoryObject Class | Spring.Objects.Factory.Config Namespace