Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.GetObjectForInstance(Object, String, String, RootObjectDefinition) Method

Get the object for the given object instance, either the object instance itself or its created object in case of an IFactoryObject.

[Visual Basic]
Protected Overridable Overloads Sub GetObjectForInstance( _
   ByVal instance As Object, _
   ByVal name As String, _
   ByVal canonicalName As String, _
   ByVal rod As RootObjectDefinition _
)
[C#]
protected virtual object GetObjectForInstance(
   object instance,
   string name,
   string canonicalName,
   RootObjectDefinition rod
);

Parameters

instance
The object instance.
name
The name that may include the factory dereference prefix (=the requested name).
canonicalName
The canonical object name
rod
the merged object definition

Return Value

The singleton instance of the object.

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace | AbstractObjectFactory.GetObjectForInstance Overload List