Created
May 31, 2013 00:49
-
-
Save behrangsa/5682329 to your computer and use it in GitHub Desktop.
AbstractViewModel
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
class AbstractViewModel { | |
def model | |
def propertyMissing(String name) { | |
model.get(name) | |
} | |
def methodMissing(String name, args) { | |
model.invokeMethod(name, args) | |
} | |
} | |
class BPPViewModel extends AbstractViewModel { | |
def getFoo() { | |
"foo" | |
} | |
} | |
def businessProfile = new BusinessProfile() | |
def bppView = new BPPView(businessProfile) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Behrang, your code looks incomplete. BPPView class definition is not listed. I'm not sure how BPPView is linked to BPPViewModel. Thanks.