By bloid
via jroller.com
Published: May 04 2007 / 17:23
In order to access the Gorm dynamic finder methods in Java, we created a dynamic proxy that dynamically called the appropriate static method on the Groovy Metaclass for the Object. Instead of linking method calls to methods at compile time, like Java, Groovy provides an extra layer of indirection. The actual method to be called is looked up at run time. This allows developers - such as the Grails team - to add methods to Objects that do not exist at compile time.
Add your comment