<div dir="ltr"><div dir="ltr"><span style="font-size:0.875rem">On Fri, Mar 6, 2020 at 4:24 AM Matej Novotny <<a href="mailto:manovotn@redhat.com">manovotn@redhat.com</a>> wrote:</span><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You want your proxies to be based on the most concrete type of the bean for apparent reasons - you want the proxy to match all possible injection points, so it has to fit into all types, which is exactly what the most specific type will do.<br></blockquote><div><br></div><div>Right.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
So in your 2 interface scenario with Square and Rectangle, you will always want to base proxy on Square so that the proxy has both types; therefore these methods will return you `Square` - a super interface for the proxy you are doing.<br></blockquote><div><br></div><div>And not just any "super interface" but the most *specific* "super interface".</div><div><br></div><div>OK. So it's the name, then. It probably should have been something like getMostSpecificSuperInterface() or something awful like that. :-) I get it now. Nice to know I wasn't reading the code backwards!</div><div><br></div><div>Best,</div><div>Laird</div></div></div>