I'm on vacation atm without access to a pc, but afaict you're matching on Binding.getKey which is the "from" part of the binding. Without assistedinject there will be a just-in-time untargetted binding that matches; ie the implementation type, equivalent to bind(MyImpl.class);
With assistedinject the implementation is hidden inside the factory binding, which is why the matcher no longer matches unless you add the init'able interface to the binding interface. IIRC it is possible get the implementation type from the assistedinject SPI binding type and from there look for the init'able interface. Should just be a matter of extending your matcher to be aware of other more specific binding types. Will take a closer look when I get back. On Aug 22, 2013 12:05 AM, <[email protected]> wrote: > This is not probably not my last test case for this issue, but it's at > least a temp test case that shows one issue (not sure if it's the main > issue in my case though) : > > https://gist.github.com/electrotype/6296350 > > A bindListener's Matcher that checks for the IInitableAfterCreation which > is used on the *concrete class* : > > - Works if no assisted factory is involved > - Doesn't work if an assisted factory is involved > > P.S. I can't spell! S-I-M-P-L-I-F-Y! :-) Sorry for that, english is not my > main language. > ******** > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-guice. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out.
