Last active
January 2, 2019 17:53
-
-
Save SebastianHGonzalez/3c1e11d912b7d8161717fbd95e24b66a to your computer and use it in GitHub Desktop.
desired joinPoint interface
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
const personGreetingPC = new PointCut({class: Person, methodName: "greet"}); | |
jhon.greet(); | |
// <- "Hello jhon" | |
personGreetingPC.addAspect(loggerAspect); | |
jhon.greet(); | |
// logging | |
// <- "Hello jhon" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment