metaClass things to remember

So I just read a post where a kind of cool debug was posted by Jochen Theodorou (blackdrag) The Groovy Project Tech Lead (http://groovy.codehaus.org) http://blackdragsview.blogspot.com/ http://www.g2one.com/ Anyway, I thought this was a great example of something that could be done with a metaClass change. I want to debug something so I do object.debug() You're asking, …

metaClass tips

MetaClass fun... A metaClass is a way to add a method-like statement to an existing Class at runtime. I don't know another way to say it really. For the JavaScript gurus out there, this is the same as the prototype if you rewrote the code I provide swapping metaClass with prototype they'd be the same …

kind of MetaClass-y

I wanted to do something with a closure where my action listener didn't have to know what events to use... e.g. normally, you'd tell the implemented ActionListener that if (event.name) == "bob" or whatever then perform an action in this case, we're going to use a simple ActionListener that doesn't care about the event, just …