[SPRNET-1505] Support using Proxyied Objects as Factory Objects Created: 25/Apr/12  Updated: 10/May/12  Resolved: 10/May/12

Status: Closed
Project: Spring.NET
Component/s: Spring-NET-CORE
Affects Version/s: 1.3.2
Fix Version/s: 2.0 M1

Type: Bug Priority: Major
Reporter: Steve Bohlen Assignee: Steve Bohlen
Resolution: Invalid Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Reference URL: http://forum.springframework.net/showthread.php?10057-Proxying-an-object-with-a-factory-method

 Description   

Spring/Spring.Core/Objects/Factory/Support/ConstructorResolver.InstantiateUsingFactoryMethod(...) does not presently take into consideration the possibility that the FactoryObject might be proxied when attempting to resolve the FactoryMethod. We need to a) tests for the presence of the proxy and then b) attempt to cast the FactoryObject into each of the proxy interfaces when we attempt to resolve the specificed FactoryMethod.



 Comments   
Comment by Steve Bohlen [ 10/May/12 ]

After further detailed review of the underlying cause of the issue in the forum post, the explanation in this ticket is incorrect/not-an-issue.

Generated at Wed Jul 17 23:34:46 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.