Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

FactoryObjectNotInitializedException Class

Exception thrown if an IFactoryObject is not fully initialized, for example if it is involved in a circular reference.

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


[Visual Basic]
<Serializable> _
Public Class FactoryObjectNotInitializedException
    Inherits ObjectCreationException
public class FactoryObjectNotInitializedException : ObjectCreationException

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.


This is usually indicated by any of the variants of the GetObject method returning a null reference (Nothing in Visual Basic).

A circular reference with an IFactoryObject cannot be solved by eagerly caching singleton instances (as is the case with normal objects. The reason is that every IFactoryObject needs to be fully initialized before it can return the created object, while only specific normal objects need to be initialized - that is, if a collaborating object actually invokes them on initialization instead of just storing the reference.


Namespace: Spring.Objects.Factory

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

See Also

FactoryObjectNotInitializedException Members | Spring.Objects.Factory Namespace