Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.GetObjectForInstance(String, Object) Method

NOTE: This method is now obsolete.

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

[Visual Basic]
<Obsolete(IsError:=False)> _
Protected Overridable Overloads Sub GetObjectForInstance( _
   ByVal name As String, _
   ByVal instance As Object _
protected virtual object GetObjectForInstance(
   string name,
   object instance


The name that may include the factory dereference prefix.
The object instance.

Return Value

The singleton instance of the object.

See Also

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