[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


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.

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 Oct 23 08:44:23 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.