Created
October 2, 2012 17:29
-
-
Save itzg/3821437 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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