Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractAutowireCapableObjectFactory.AddEagerlyCachedSingleton Method

Add the created, but yet unpopulated singleton to the singleton cache to be able to resolve circular references

[Visual Basic]
Protected Overridable Sub AddEagerlyCachedSingleton( _
   ByVal objectName As String, _
   ByVal objectDefinition As IObjectDefinition, _
   ByVal rawSingletonInstance As Object _
)
[C#]
protected virtual void AddEagerlyCachedSingleton(
   string objectName,
   IObjectDefinition objectDefinition,
   object rawSingletonInstance
);

Parameters

objectName
the name of the object to add to the cache.
objectDefinition
the definition used to create and populated the object.
rawSingletonInstance
the raw object instance.

Remarks

Derived classes may override this method to select the right cache based on the object definition.

See Also

AbstractAutowireCapableObjectFactory Class | Spring.Objects.Factory.Support Namespace