Hi Alex, Felix Thanks for sharing your thoughts.
The real magic was to implement cache of adapter factory descriptors, indexed by adaptable and adapter, and to maintain that. It works really well btw. Proposed implementation change would just query that cache more that once, what is currently done. On Mon, Mar 4, 2013 at 12:59 PM, Felix Meschberger <[email protected]>wrote: > Hi > > Am 04.03.2013 um 12:16 schrieb Alexander Klimetschek: > > > On 03.03.2013, at 00:05, Miroslav Smiljanic <[email protected]> > wrote: > > > >> Currently if A adapts to [B, D], and B adapts to [C], adapter manager > will not adapt A to C even if it is potentially possible. > >> > >> AdapterManager.getAdapter method has to be called twice. > >> I have done some code modifications and made operation transitive. > >> > >> Do you think that it would be worth to add this new capability to > AdapterManagerImpl? > > > > That sounds like a bit too much magic to me, I think it's better if devs > are forced to explicitly adapt things one at a time.... > > Agreed. > > Regards > Felix > > > > > Do you have a use case? > > > > Cheers, > > Alex > > > -- > Felix Meschberger | Principal Scientist | Adobe > > > > > > > > -- Best regards, Miroslav
