On Wed, Mar 11, 2009 at 2:36 PM, Jochen Theodorou <[email protected]> wrote:
> > John Rose schrieb: > > On Mar 10, 2009, at 6:17 PM, Jochen Theodorou wrote: > > > >> how do I get the hard link from the class to the meta > >> class here? > > > > Interface injection is (will be) built on top of method handles. > > Method handles can close over live data values > > (MethodHandles.insertArgument). > > So you can inject a one argument method, curried with a tailored > > MetaClass value, to fulfill a zero-argument method injection. > > That's an interesting facet of runtime injection, making it more > > powerful than static injeciton. > > ah, ok, haven't thought of that... and can I use different MethodHandles > for different types I inject into? and does the bootstrapping method for > that include the type I am injecting into? Because I have to let for > example Object return a different value than String. Yes. The injection is done uniquely for each target class. John: On the InterfaceInjection wiki page you wrote some things that implies that java.lang.Object can not be an injection target. What was the motivation behind this? /Tobias --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en -~----------~----~----~----~------~----~------~--~---
