Skip to content

Instantly share code, notes, and snippets.

@itzg
Created October 2, 2012 17:29
Show Gist options
  • Save itzg/3821437 to your computer and use it in GitHub Desktop.
Save itzg/3821437 to your computer and use it in GitHub Desktop.
public class VagueGroovyInGrails {
// Typical service injection by Grails
// It's type is...? It's resolved dynamically at runtime
def someService
void doSomething() {
// Call a service method. Does that method exist?
// Who knows? We don't even know what class type it is at compile time.
someService.doYourThing();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment