3 Jul 13:37
[groovy-dev] Meta Object Protocol woes
From: Russel Winder <russel.winder@...>
Subject: [groovy-dev] Meta Object Protocol woes
Newsgroups: gmane.comp.lang.groovy.devel
Date: 2008-07-03 11:38:14 GMT
Subject: [groovy-dev] Meta Object Protocol woes
Newsgroups: gmane.comp.lang.groovy.devel
Date: 2008-07-03 11:38:14 GMT
Clearly I really don't understand the Meta Object Protocol. However, before launching into the deep and detailed, let me ask an easy question. MetaObjectProtocol requires there to be: invokeMethod ( Object , String , Object[] ) invokeMethod ( Object , String , Object ) is there any obvious reason why? Are they supposed to have different purposes, and different implementations? OK, that was three qeustions. If I can get a definitive answer to these, then I may be able to save boring the list with the real problems which involve Gant, Grails, and why the GantMetaClass implementated one way causes incomprehensible errors and implemented a different way works fine except for GANT-49. I mention this to give people motivation to avoid the detail-- -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077
Peter and I had a private email exchange which has shed some light on
> I'm not sure where John was going with this, but I can't say I agree.
> All DMC does is delegate to another meta class, of course a side
> effect of this is that it always implements all interface
> provided/abstract methods which may have persuaded John to believe
> this, but certainly that is not the only thing that can cause
> breakage. There is also the semantics of the code and remove of
> methods all together.
It is all water under the bridge now so no real point in worrying.
> > If the best advice is now use ExpandoMetaClass and it can be used as an
> > intercepting metaclass then it is certainly worth a try. Fortunately I
> > think GantMetaClass can be changed without changing anything else in the
> > Gant code.
>
> That is my view yes. Also refer to Venkat's book
> (
RSS Feed