Link Details

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.
  • 10
  • 0
  • 1831
  • 389

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 (10)



Voters Against This Link (0)