BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

You don't even have to leave your chair. Login and vote now.
Link 21096 thumbnail
User 111696 avatar

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.
  • 9
  • 0
  • 3510
  • 0

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)